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