File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 53
53
needs : check
54
54
# Prevent the job from being triggered in fork.
55
55
# always() will trigger this job when `needs` are skipped in a `merge` pull_request event.
56
- if : always() && github.event.pull_request.head.repo.full_name == github.repository && (github.event.action != 'closed' || github.event.pull_request.merged)
56
+ if : always() && github.event.pull_request.head.repo.full_name == github.repository && (( github.event.action != 'closed' && github.event.pull_request.base.ref == 'master') || github.event.pull_request.merged)
57
57
runs-on : macos-11
58
58
strategy :
59
59
matrix :
@@ -334,7 +334,7 @@ jobs:
334
334
with :
335
335
path : /Users/runner/test
336
336
- name : Compare Diff and Post a Report
337
- if : github.event.pull_request.merged != true && github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository
337
+ if : github.event.pull_request.merged != true && github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'master'
338
338
env :
339
339
base_commit : ${{ needs.check.outputs.target_branch_head }}
340
340
run : |
You can’t perform that action at this time.
0 commit comments