@@ -23,21 +23,34 @@ permissions:
2323 contents : read
2424
2525jobs :
26- triage :
26+ release :
2727 runs-on : ubuntu-latest
28- permissions :
29- contents : write
28+
29+ env :
30+ GIT_COMMIT_AUTHOR_EMAIL : ${{ vars.ALLURE_CI_APP_USER_ID }}+${{ vars.ALLURE_CI_APP_SLUG }}[bot]@users.noreply.github.com
31+ GIT_COMMIT_AUTHOR_NAME : ${{ vars.ALLURE_CI_APP_SLUG }}[bot]
32+
3033 steps :
3134 - name : " Check release version"
3235 run : |
3336 expr "${{ inputs.releaseVersion }}" : '[[:digit:]][[:digit:]]*\.[[:digit:]][[:digit:]]*\.[[:digit:]][[:digit:]]*$'
3437 echo "release_version=${{ inputs.releaseVersion }}" >> $GITHUB_ENV
38+
3539 - name : " Check next version"
3640 run : |
3741 expr "${{ inputs.nextVersion }}" : '[[:digit:]][[:digit:]]*\.[[:digit:]][[:digit:]]*$'
42+
43+ - name : Create GitHub App token
44+ id : app-token
45+ uses : actions/create-github-app-token@v3
46+ with :
47+ client-id : ${{ vars.ALLURE_CI_APP_CLIENT_ID }}
48+ private-key : ${{ secrets.ALLURE_CI_APP_PRIVATE_KEY }}
49+ permission-contents : write
50+
3851 - uses : actions/checkout@v7
3952 with :
40- token : ${{ secrets.QAMETA_CI }}
53+ token : ${{ steps.app-token.outputs.token }}
4154
4255 - name : " Mark release as preview"
4356 if : ${{ inputs.prerelease }}
4659
4760 - name : " Configure CI Git User"
4861 run : |
49- git config --global user.name qameta-ci
50- git config --global user.email qameta-ci@qameta.io
62+ git config --global user.name "${GIT_COMMIT_AUTHOR_NAME}"
63+ git config --global user.email "${GIT_COMMIT_AUTHOR_EMAIL}"
5164
5265 - name : " Set release version"
5366 run : |
@@ -108,4 +121,4 @@ jobs:
108121 target_commitish : ${{ github.ref }}
109122 prerelease : ${{ inputs.prerelease }}
110123 env :
111- GITHUB_TOKEN : ${{ secrets.QAMETA_CI }}
124+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
0 commit comments