@@ -23,21 +23,21 @@ jobs:
2323
2424 steps :
2525 - uses : actions/create-github-app-token@v1
26- id : gitgitgadget-git -token
26+ id : pr-repo -token
2727 with :
2828 app-id : ${{ secrets.GITGITGADGET_GITHUB_APP_ID }}
2929 private-key : ${{ secrets.GITGITGADGET_GITHUB_APP_PRIVATE_KEY }}
3030 owner : gitgitgadget
3131 repositories : git
3232 - uses : actions/create-github-app-token@v1
33- id : git-git -token
33+ id : upstream-repo -token
3434 with :
3535 app-id : ${{ secrets.GITGITGADGET_GIT_GITHUB_APP_ID }}
3636 private-key : ${{ secrets.GITGITGADGET_GIT_GITHUB_APP_PRIVATE_KEY }}
3737 owner : git
3838 repositories : git
3939 - uses : actions/create-github-app-token@v1
40- id : dscho-git -token
40+ id : test-repo -token
4141 with :
4242 app-id : ${{ secrets.GITGITGADGET_GIT_GITHUB_APP_ID }}
4343 private-key : ${{ secrets.GITGITGADGET_GIT_GITHUB_APP_PRIVATE_KEY }}
6565 echo "repo=$repo" >> $GITHUB_OUTPUT
6666
6767 export GH_TOKEN="$(case "$repo" in
68- gitgitgadget/git) echo "${{ steps.gitgitgadget-git -token.outputs.token }}";;
69- git/git) echo "${{ steps.git-git -token.outputs.token }}";;
70- dscho/git) echo "${{ steps.dscho-git -token.outputs.token }}";;
68+ gitgitgadget/git) echo "${{ steps.pr-repo -token.outputs.token }}";;
69+ git/git) echo "${{ steps.upstream-repo -token.outputs.token }}";;
70+ dscho/git) echo "${{ steps.test-repo -token.outputs.token }}";;
7171 *) echo "${{ secrets.GITHUB_TOKEN }}";;
7272 esac
7373 )"
@@ -84,17 +84,17 @@ jobs:
8484 - uses : gitgitgadget/gitgitgadget/handle-pr-push@v1
8585 with :
8686 config : ${{ vars.CONFIG }}
87- pr-repo-token : ${{ steps.gitgitgadget-git -token.outputs.token }}
88- upstream-repo-token : ${{ steps.git-git -token.outputs.token }}
89- test-repo-token : ${{ steps.dscho-git -token.outputs.token }}
87+ pr-repo-token : ${{ steps.pr-repo -token.outputs.token }}
88+ upstream-repo-token : ${{ steps.upstream-repo -token.outputs.token }}
89+ test-repo-token : ${{ steps.test-repo -token.outputs.token }}
9090 pr-url : ${{ env.PR_URL }}
9191 - name : update the check run
9292 if : always() && steps.create-check-run.outputs.check_run_id != ''
9393 run : |
9494 export GH_TOKEN="$(case "${{ steps.create-check-run.outputs.repo }}" in
95- gitgitgadget/git) echo "${{ steps.gitgitgadget-git -token.outputs.token }}";;
96- git/git) echo "${{ steps.git-git -token.outputs.token }}";;
97- dscho/git) echo "${{ steps.dscho-git -token.outputs.token }}";;
95+ gitgitgadget/git) echo "${{ steps.pr-repo -token.outputs.token }}";;
96+ git/git) echo "${{ steps.upstream-repo -token.outputs.token }}";;
97+ dscho/git) echo "${{ steps.test-repo -token.outputs.token }}";;
9898 *) echo "${{ secrets.GITHUB_TOKEN }}";;
9999 esac
100100 )"
0 commit comments