Skip to content

Commit 2602964

Browse files
feat(ci): use PAT secret for release workflows
Signed-off-by: Victor Adossi <[email protected]>
1 parent 3e2f36c commit 2602964

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
- name: Generate changelog
117117
working-directory: ${{ steps.project-meta.outputs.project-dir }}
118118
env:
119-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119+
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }}
120120
run: |
121121
git cliff \
122122
--repository=${{ github.workspace }}/.git \

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ jobs:
211211
- name: Re-generate current changelog
212212
working-directory: ${{ needs.meta.outputs.project-dir }}
213213
env:
214-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
214+
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }}
215215
GITHUB_REPO: ${{ github.repository }}
216216
run: |
217217
git cliff --repository=${{ github.workspace }}/.git --tag=${{ needs.meta.outputs.release-ref }} > CHANGELOG.current

.github/workflows/tag-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ jobs:
8888
- name: Push tag
8989
if: ${{ steps.meta.outputs.proceed }}
9090
env:
91-
# TODO: we must use a PAT here to trigger the release action automatically
92-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }}
9392
run: |
9493
git config user.name "github-actions[bot]";
9594
git config user.email "github-actions[bot]@users.noreply.github.com";

0 commit comments

Comments
 (0)