Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit310cd89

Browse files
[3.12]gh-133410: Fix PR detection in build workflow (GH-133671) (#134057)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent0c92fc3 commit310cd89

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎.github/workflows/reusable-context.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
run:python Tools/build/compute-changes.py
9898
env:
9999
GITHUB_DEFAULT_BRANCH:${{ github.event.repository.default_branch }}
100+
GITHUB_EVENT_NAME:${{ github.event_name }}
100101
CCF_TARGET_REF:${{ github.base_ref || github.event.repository.default_branch }}
101102
CCF_HEAD_REF:${{ github.event.pull_request.head.sha || github.sha }}
102103

‎Tools/build/compute-changes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Outputs:
5757

5858
defcompute_changes()->None:
5959
target_branch,head_ref=git_refs()
60-
iftarget_branchandhead_ref:
60+
ifos.environ.get("GITHUB_EVENT_NAME","")=="pull_request":
6161
# Getting changed files only makes sense on a pull request
6262
files=get_changed_files(target_branch,head_ref)
6363
outputs=process_changed_files(files)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp