Skip to content

Commit a9e6a78

Browse files
committed
test skip
1 parent 5d702cb commit a9e6a78

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/debug.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,24 @@ on:
66
pull_request:
77

88
jobs:
9-
check:
9+
turbo-check:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- uses: jwalton/gh-find-current-pr@master
13+
id: findPr
14+
15+
- name: Debug PR info
16+
run: |
17+
echo "PR exists: ${{ steps.findPr.outputs.number != '' }}"
18+
echo "PR number: ${{ steps.findPr.outputs.number }}"
19+
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+
1227
- uses: actions/checkout@v4
1328

1429
- uses: ./.github/actions/check-turbo-changes

0 commit comments

Comments
 (0)