Skip to content

Commit 75c1bff

Browse files
committed
Fix PR creation logic
1 parent 6252c22 commit 75c1bff

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/automatic-api-update.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ jobs:
3535
with:
3636
delete-branch: "true"
3737
title: "Update API to ${{ github.event.client_payload.BUFTAG }}"
38+
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
39+
# This is how we ensure that workflows run
40+
draft: "always-true"
3841
branch: "api-change/${{ github.event.client_payload.BUFTAG }}"
3942
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/manual-api-update.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
if: steps.buf-update.outputs.updated == 'true'
3939
with:
4040
delete-branch: "true"
41+
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
42+
# This is how we ensure that workflows run
43+
draft: "always-true"
4144
title: Update API to ${{ inputs.buftag }}
4245
branch: api-change/${{ inputs.buftag }}
4346
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)