We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a5db6 commit 278a889Copy full SHA for 278a889
1 file changed
Tools/build/compute-changes.py
@@ -117,10 +117,10 @@ class Outputs:
117
118
119
def compute_changes() -> None:
120
- target_branch, head_ref = git_refs()
+ target_ref, head_ref = git_refs()
121
if os.environ.get("GITHUB_EVENT_NAME", "") == "pull_request":
122
# Getting changed files only makes sense on a pull request
123
- files = get_changed_files(target_branch, head_ref)
+ files = get_changed_files(target_ref, head_ref)
124
outputs = process_changed_files(files)
125
else:
126
# Otherwise, just run the tests
@@ -133,6 +133,7 @@ def compute_changes() -> None:
133
run_wasi=True,
134
run_windows_tests=True,
135
)
136
+ target_branch = target_ref.removeprefix("origin/")
137
outputs = process_target_branch(outputs, target_branch)
138
139
if outputs.run_tests:
0 commit comments