File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 55
66jobs :
77 check :
8+ if : ${{ github.event.pull_request.head.repo.fork }}
89 runs-on : ubuntu-latest
910 steps :
1011 - name : Checkout merge commit
1415 fetch-depth : 2
1516
1617 - name : Check changes to .github
17- if : ${{ github.event.pull_request.head.repo.fork }}
1818 id : check
1919 run : |
2020 echo "==> Changed files:"
3434 fi
3535
3636 - name : Comment PR
37- if : ${{ always() && github.event.pull_request.head.repo.fork && steps.check.outputs.bad == 'true' }}
37+ if : ${{ always() && steps.check.outputs.bad == 'true' }}
3838 uses : actions/github-script@v7
3939 with :
4040 script : |
4646 > This pull request contains changes to GitHub workflows!
4747 > Proceed with caution and if not sure, contact your GitHub admin.`
4848 })
49-
50- - if : ${{ !github.event.pull_request.head.repo.fork }}
51- run : |
52- echo "Not a PR from fork."
You can’t perform that action at this time.
0 commit comments