File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 97
97
run : python Tools/build/compute-changes.py
98
98
env :
99
99
GITHUB_DEFAULT_BRANCH : ${{ github.event.repository.default_branch }}
100
+ GITHUB_EVENT_NAME : ${{ github.event_name }}
100
101
CCF_TARGET_REF : ${{ github.base_ref || github.event.repository.default_branch }}
101
102
CCF_HEAD_REF : ${{ github.event.pull_request.head.sha || github.sha }}
102
103
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ def compute_changes() -> None:
59
59
target_branch , head_ref = git_refs ()
60
60
print (f"{ target_branch = } " )
61
61
print (f"{ head_ref = } " )
62
- if target_branch and head_ref :
62
+
63
+ if os .environ .get ("GITHUB_EVENT_NAME" , "" ) == "pull_request" :
63
64
# Getting changed files only makes sense on a pull request
64
65
files = get_changed_files (target_branch , head_ref )
65
66
outputs = process_changed_files (files )
You can’t perform that action at this time.
0 commit comments