@@ -23,21 +23,21 @@ jobs:
23
23
24
24
steps :
25
25
- uses : actions/create-github-app-token@v1
26
- id : gitgitgadget-git -token
26
+ id : pr-repo -token
27
27
with :
28
28
app-id : ${{ secrets.GITGITGADGET_GITHUB_APP_ID }}
29
29
private-key : ${{ secrets.GITGITGADGET_GITHUB_APP_PRIVATE_KEY }}
30
30
owner : gitgitgadget
31
31
repositories : git
32
32
- uses : actions/create-github-app-token@v1
33
- id : git-git -token
33
+ id : upstream-repo -token
34
34
with :
35
35
app-id : ${{ secrets.GITGITGADGET_GIT_GITHUB_APP_ID }}
36
36
private-key : ${{ secrets.GITGITGADGET_GIT_GITHUB_APP_PRIVATE_KEY }}
37
37
owner : git
38
38
repositories : git
39
39
- uses : actions/create-github-app-token@v1
40
- id : dscho-git -token
40
+ id : test-repo -token
41
41
with :
42
42
app-id : ${{ secrets.GITGITGADGET_GIT_GITHUB_APP_ID }}
43
43
private-key : ${{ secrets.GITGITGADGET_GIT_GITHUB_APP_PRIVATE_KEY }}
65
65
echo "repo=$repo" >> $GITHUB_OUTPUT
66
66
67
67
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 }}";;
71
71
*) echo "${{ secrets.GITHUB_TOKEN }}";;
72
72
esac
73
73
)"
@@ -84,17 +84,17 @@ jobs:
84
84
- uses : gitgitgadget/gitgitgadget/handle-pr-push@v1
85
85
with :
86
86
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 }}
90
90
pr-url : ${{ env.PR_URL }}
91
91
- name : update the check run
92
92
if : always() && steps.create-check-run.outputs.check_run_id != ''
93
93
run : |
94
94
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 }}";;
98
98
*) echo "${{ secrets.GITHUB_TOKEN }}";;
99
99
esac
100
100
)"
0 commit comments