File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,24 @@ jobs:
19
19
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
20
20
with :
21
21
persist-credentials : false
22
+ - name : Create GitHub App Token
23
+ id : create-app-token
24
+ uses : actions/create-github-app-token@v1
25
+ with :
26
+ app-id : ${{ secrets.APP_ID }}
27
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
28
+ - name : Get GitHub App User ID
29
+ id : get-user-id
30
+ run : echo "user-id=$(gh api "/users/${{ steps.create-app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
31
+ env :
32
+ GH_TOKEN : ${{ steps.create-app-token.outputs.token }}
33
+ - run : |
34
+ git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
35
+ git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
22
36
- name : Semantic Release
23
37
uses : cycjimmy/semantic-release-action@cb425203a562475bca039ba4dbf90c7f9ac790f4 # v4.1.0
24
38
env :
25
- GITHUB_TOKEN : ${{ secrets.TOKEN_SEMANTIC_RELEASE }}
39
+ GITHUB_TOKEN : ${{ steps.create-app-token.outputs.token }}
26
40
with :
27
41
semantic_version : 24.1.1
28
42
extra_plugins : |
You can’t perform that action at this time.
0 commit comments