Skip to content

Commit b85cd90

Browse files
committed
test
1 parent a9e6a78 commit b85cd90

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/debug.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ on:
66
pull_request:
77

88
jobs:
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

0 commit comments

Comments
 (0)