File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
add-team-label :
10
10
uses : ./.github/workflows/add-team-label.yml
11
- permissions :
12
- pull-requests : write
13
11
secrets :
14
- PERSONAL_ACCESS_TOKEN : ${{ secrets.LABEL_TOKEN }}
12
+ TEAM_LABEL_TOKEN : ${{ secrets.TEAM_LABEL_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Add team label
3
3
on :
4
4
workflow_call :
5
5
secrets :
6
- PERSONAL_ACCESS_TOKEN :
6
+ TEAM_LABEL_TOKEN :
7
7
required : true
8
8
9
9
jobs :
13
13
- name : Get team label
14
14
id : get-team-label
15
15
env :
16
- GH_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
16
+ GH_TOKEN : ${{ secrets.TEAM_LABEL_TOKEN }}
17
17
USER : ${{ github.event.pull_request.user.login }}
18
18
run : |
19
19
team_label=$(gh api -H 'Accept: application/vnd.github.raw' 'repos/metamask/metamask-planning/contents/teams.json' --jq ".\"$USER\"")
25
25
26
26
- name : Add team label
27
27
env :
28
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ GH_TOKEN : ${{ secrets.TEAM_LABEL_TOKEN }}
29
29
PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }}
30
30
TEAM_LABEL : ${{ steps.get-team-label.outputs.TEAM_LABEL }}
31
31
run : |
You can’t perform that action at this time.
0 commit comments