File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77
88jobs :
9- turbo -check :
9+ pr-push -check :
1010 runs-on : ubuntu-latest
11+ outputs :
12+ skip : ${{ github.event_name == 'push' && steps.findPr.outputs.number != '' }}
1113 steps :
1214 - uses : jwalton/gh-find-current-pr@master
1315 id : findPr
@@ -16,14 +18,13 @@ jobs:
1618 run : |
1719 echo "PR exists: ${{ steps.findPr.outputs.number != '' }}"
1820 echo "PR number: ${{ steps.findPr.outputs.number }}"
21+ echo "Is push based: ${{ github.event_name == 'push' }}"
1922
20- - name : Check and exit if condition
21- if : github.event_name == 'push' && steps.findPr.outputs.number != ''
22- shell : bash
23- run : |
24- echo "Push event but commit is part of a Pull Request. Exiting..."
25- exit 0
26-
23+ turbo-check :
24+ needs : pr-push-check
25+ if : needs.pr-push-check.outputs.skip == 'false'
26+ runs-on : ubuntu-latest
27+ steps :
2728 - uses : actions/checkout@v4
2829
2930 - uses : ./.github/actions/check-turbo-changes
You can’t perform that action at this time.
0 commit comments