Skip to content

Commit 37c7772

Browse files
committed
Use gitlow app token for gitflow action in the release workflow
1 parent 1121cde commit 37c7772

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
(github.event.pull_request.merged == true &&
2626
startsWith(github.event.pull_request.head.ref, 'release/'))
2727
steps:
28+
29+
- name: Get Gitflow App token
30+
uses: actions/create-github-app-token@v1
31+
id: app-token
32+
with:
33+
app-id: ${{ secrets.GITFLOW_APP_ID }}
34+
private-key: ${{ secrets.GITFLOW_APP_KEY }}
35+
2836
- name: Gitflow action
2937
id: gitflow-action
3038
uses: hoangvvo/gitflow-workflow-action@0.3.7
@@ -35,7 +43,7 @@ jobs:
3543
version_increment: ${{ contains(github.head_ref, 'hotfix/') && 'patch' || '' }}
3644
dry_run: ${{ inputs.dry_run }}
3745
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3947

4048
- name: Checkout code
4149
uses: actions/checkout@v4

0 commit comments

Comments
 (0)