File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 with :
2525 client-id : ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
2626 private-key : ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
27+ permission-contents : write
28+ permission-pull-requests : write
29+
30+ - name : Get GitHub App user ID
31+ id : get-user-id
32+ shell : bash
33+ env :
34+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
35+ run : echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
2736
2837 - name : Checkout code
2938 uses : actions/checkout@v6
3645 env :
3746 GH_TOKEN : ${{ steps.app-token.outputs.token }}
3847 run : |
39- git config --global user.name "github-actions [bot]"
40- git config --global user.email "github-actions [bot]@users.noreply.github.com"
41- git config --global url."https://$($env:GH_TOKEN) @github.com/".insteadOf "https://github.com/"
48+ git config --global user.name "${{ steps.app-token.outputs.app-slug }} [bot]"
49+ git config --global user.email "${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }} [bot]@users.noreply.github.com"
50+ git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }} @github.com/".insteadOf "https://github.com/"
4251
4352 - name : Check for existing PR
4453 id : check_pr
You can’t perform that action at this time.
0 commit comments