Skip to content

Commit 0d6b224

Browse files
committed
Fix base ref for PR triggers
1 parent a4e059f commit 0d6b224

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/generate_bindings.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,22 @@ jobs:
2929
- name: Run the generator
3030
run: ./gen/generate.sh
3131

32-
- name: Create Pull Request
32+
- name: Create Pull Request (on push)
3333
uses: peter-evans/create-pull-request@v6
3434
with:
3535
commit-message: "Regenerate bindings"
3636
title: "Regenerate bindings"
3737
reviewers: |
3838
quinnj
3939
Octogonapus
40+
41+
- name: Create Pull Request (on PR)
42+
if: ${{ github.event_name == 'pull_request' }}
43+
uses: peter-evans/create-pull-request@v6
44+
with:
45+
base: ${{ github.head_ref }}
46+
commit-message: "Regenerate bindings"
47+
title: "Regenerate bindings"
48+
reviewers: |
49+
quinnj
50+
Octogonapus

0 commit comments

Comments
 (0)