Skip to content

Commit d0d7627

Browse files
committed
chore: Pull RequestをベースにOpenAPIの再生成を行った場合は、そのPRをbase branchにPRを作成する
1 parent 2b566dd commit d0d7627

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/openapi-client.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,13 @@ jobs:
8484
id: cpr
8585
with:
8686
token: ${{ steps.app-token.outputs.token }}
87-
base: ${{ github.event.repository.default_branch }}
87+
base: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.event.repository.default_branch }}
8888
delete-branch: true
8989
draft: true
9090
add-paths: "packages/eqmonitor_api/lib/**/*"
9191
signoff: true
9292
sign-commits: true
9393
commit-message: "chore: regenerate OpenAPI client"
94-
committer: "GitHub Actions <noreply@github.com>"
9594
branch: "regenerate-openapi-client/patch"
9695
labels: "Auto Update"
9796
reviewers: ${{ github.actor }}

0 commit comments

Comments
 (0)