use non-reserved gh token env name

This commit is contained in:
Raicuparta 2024-09-01 23:56:12 +02:00 committed by GitHub
parent 037b5fa1f8
commit 1a9c87cb15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
@ -68,7 +68,7 @@ jobs:
uses: ./actions/update-database
with:
out-directory: database
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ env.GH_TOKEN }}
mods: mods.json
previous-database: previous-database.json
google-service-account: ${{ github.event_name != 'pull_request' && secrets.GOOGLE_SERVICE_ACCOUNT || '' }}
@ -82,7 +82,7 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
uses: actions/deploy-pages@v4
with:
token: ${{ env.GITHUB_TOKEN }}
token: ${{ env.GH_TOKEN }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
@ -98,7 +98,7 @@ jobs:
- name: Dispatch Website Build Event
if: ${{ github.event_name != 'pull_request' }}
run: |
curl -XPOST -u "${{ secrets.GH_USER }}:${{ env.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/ow-mods/outerwildsmods.com/dispatches --data '{"event_type": "build"}'
curl -XPOST -u "${{ secrets.GH_USER }}:${{ env.GH_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/ow-mods/outerwildsmods.com/dispatches --data '{"event_type": "build"}'
- name: Send Notifications
if: ${{ github.event_name != 'pull_request' }}