Skip to content

Commit 7a8737a

Browse files
committed
update pr logic
1 parent 52043ae commit 7a8737a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/generate_bindings.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ jobs:
6868
git add -A
6969
git commit -m "chore(codegen): update bevy bindings"
7070
git push -u origin ${{ env.BRANCH_NAME }} --force
71+
- uses: jwalton/gh-find-current-pr@master
72+
id: findPR
73+
with:
74+
state: all
7175
- name: Create Or Update PR
76+
if: success() && steps.findPR.outputs.number
7277
run: |
73-
gh pr create --title "chore(codegen): update bevy bindings" --body "This PR updates the bevy bindings. #${{ github.event.number }}" --base ${{ github.ref }} --head ${{ env.BRANCH_NAME }} || true
78+
gh pr create --title "chore(codegen): update bevy bindings" --body "This PR updates the bevy bindings. #${{ steps.findPR.outputs.number }}" --base ${{ github.ref }} --head ${{ env.BRANCH_NAME }} || true

0 commit comments

Comments
 (0)