Skip to content

Commit e5a999a

Browse files
committed
Fix the GITHUB_ prefix was unusable
1 parent 2a4bfcb commit e5a999a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/authenticating-with-github-app-installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
- name: Run issue-metrics tool
4141
uses: github/issue-metrics@v3
4242
env:
43-
GH_APP_ID: ${{ secrets.GITHUB_APP_ID }}
44-
GH_APP_INSTALLATION_ID: ${{ secrets.GITHUB_APP_INSTALLATION_ID }}
43+
GH_APP_ID: ${{ secrets.GH_APP_ID }}
44+
GH_APP_INSTALLATION_ID: ${{ secrets.GH_APP_INSTALLATION_ID }}
4545
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
4646
SEARCH_QUERY: 'repo:owner/repo is:issue created:${{ env.last_month }} -reason:"not planned"'
4747

@@ -50,13 +50,13 @@ jobs:
5050
teamMembers="$(gh api /orgs/ORG/teams/TEAM_SLUG/members | jq -r '.[].login' | paste -sd, -)"
5151
echo 'TEAM_MEMBERS='$teamMembers >> $GITHUB_ENV
5252
env:
53-
GITHUB_TOKEN: ${{ secrets.CUSTOM_TOKEN }}
53+
GH_TOKEN: ${{ secrets.CUSTOM_TOKEN }}
5454
5555
- name: Create issue
5656
uses: peter-evans/create-issue-from-file@v4
5757
with:
5858
title: Monthly issue metrics report
59-
token: ${{ secrets.GITHUB_TOKEN }}
59+
token: ${{ secrets.GH_TOKEN }}
6060
content-filepath: ./issue_metrics.md
6161
assignees: ${{ env.TEAM_MEMBERS }}
6262
```

0 commit comments

Comments
 (0)