Skip to content

Commit 278a889

Browse files
Fix some more...
1 parent 67a5db6 commit 278a889

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Tools/build/compute-changes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ class Outputs:
117117

118118

119119
def compute_changes() -> None:
120-
target_branch, head_ref = git_refs()
120+
target_ref, head_ref = git_refs()
121121
if os.environ.get("GITHUB_EVENT_NAME", "") == "pull_request":
122122
# Getting changed files only makes sense on a pull request
123-
files = get_changed_files(target_branch, head_ref)
123+
files = get_changed_files(target_ref, head_ref)
124124
outputs = process_changed_files(files)
125125
else:
126126
# Otherwise, just run the tests
@@ -133,6 +133,7 @@ def compute_changes() -> None:
133133
run_wasi=True,
134134
run_windows_tests=True,
135135
)
136+
target_branch = target_ref.removeprefix("origin/")
136137
outputs = process_target_branch(outputs, target_branch)
137138

138139
if outputs.run_tests:

0 commit comments

Comments
 (0)