mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
gh-133410: Fix PR detection in build workflow (#133671)
This commit is contained in:
parent
d029a1a1cb
commit
319acf3d6c
2 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,7 @@ class Outputs:
|
|||
|
||||
def compute_changes() -> None:
|
||||
target_branch, head_ref = git_refs()
|
||||
if target_branch and head_ref:
|
||||
if os.environ.get("GITHUB_EVENT_NAME", "") == "pull_request":
|
||||
# Getting changed files only makes sense on a pull request
|
||||
files = get_changed_files(target_branch, head_ref)
|
||||
outputs = process_changed_files(files)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue