Skip to content

Commit e958565

Browse files
committed
Define types
1 parent 52abeb7 commit e958565

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/test-pull-request.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Validate pull request
22

3-
on: pull_request_target
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened, ready_for_review]
46

57
permissions:
68
contents: read
@@ -10,7 +12,19 @@ permissions:
1012
actions: read
1113

1214
jobs:
15+
debug:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Debug Event
19+
run: |
20+
echo "Event name: ${{ github.event_name }}"
21+
echo "PR number: ${{ github.event.pull_request.number }}"
22+
echo "PR base ref: ${{ github.event.pull_request.base.ref }}"
23+
echo "PR head ref: ${{ github.event.pull_request.head.ref }}"
24+
echo "PR state: ${{ github.event.pull_request.state }}"
25+
1326
testing:
27+
needs: debug
1428
uses: ./.github/workflows/validate-pr_job.yml
1529
secrets: inherit
1630
permissions: write-all

0 commit comments

Comments
 (0)