Skip to content

Commit a88ae29

Browse files
testing
1 parent b129d4c commit a88ae29

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/incremental.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ def update_module_hash(build_dir: Path, sentinel_files: list[Path]) -> None:
142142

143143
# configure sphinx build with GitHub user and repo from CLI
144144
if args.github_user and args.github_repo:
145+
assert get_env("GITHUB_REPOSITORY_OWNER") == args.github_user, (
146+
"GitHub user from CLI does not match GITHUB_REPOSITORY_OWNER environment variable"
147+
)
148+
assert get_env("GITHUB_REPOSITORY").split("/")[1] == args.github_repo, (
149+
"GitHub repo from CLI does not match GITHUB_REPOSITORY environment variable"
150+
)
151+
145152
base_arguments.append(f"-A=github_user={args.github_user}")
146153
base_arguments.append(f"-A=github_repo={args.github_repo}")
147154
base_arguments.append("-A=github_version=main")

0 commit comments

Comments
 (0)