Skip to content

Commit 9fca913

Browse files
committed
ci(github-actions): use create-github-app-token to generate semantic release token
1 parent ea1189f commit 9fca913

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,17 @@ jobs:
2828
with:
2929
app-id: ${{ secrets.APP_ID }}
3030
private-key: ${{ secrets.APP_PRIVATE_KEY }}
31+
- name: Checkout repository
32+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
33+
with:
34+
token: ${{ steps.app-token.outputs.token }}
3135
- run: |
3236
gh pr list
3337
echo "pr-list=$(gh pr list)"
3438
env:
3539
GH_TOKEN: ${{ steps.app-token.outputs.token }}
36-
- name: Checkout repository
37-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
38-
with:
39-
token: ${{ steps.app-token.outputs.token }}
4040
- name: Semantic Release
4141
uses: cycjimmy/semantic-release-action@cb425203a562475bca039ba4dbf90c7f9ac790f4 # v4.1.0
42-
env:
43-
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
4442
with:
4543
dry_run: "${{ inputs.dry-run }}"
4644
semantic_version: 24.1.1

0 commit comments

Comments
 (0)