Skip to content

Update resources

Update resources #61

name: Update resources
on:
workflow_dispatch:
schedule:
- cron: 5 4 2,16 * *
jobs:
build:
name: Update resources
runs-on: self-hosted
outputs:
pushed: ${{ steps.push.outputs.pushed }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: master
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm clean-install
- name: Download resources
run: node scripts/downloadResources.js
- name: Commit and push
uses: EndBug/add-and-commit@v9
with:
message: 'Update new resources (${{ github.run_number }})'
pathspec_error_handling: ignore
id: push
deploy:
name: Trigger deploy
needs: build
if: needs.build.outputs.pushed == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/firebase-hosting-merge.yml
secrets:
FIREBASE_SERVICE_ACCOUNT_UNDERCARD_509BA: ${{secrets.FIREBASE_SERVICE_ACCOUNT_UNDERCARD_509BA}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Check failure on line 36 in .github/workflows/update-resources.yml

View workflow run for this annotation

GitHub Actions / Update resources

Invalid workflow file

The workflow is not valid. .github/workflows/update-resources.yml (Line: 36, Col: 21): Invalid secret, GITHUB_TOKEN is not defined in the referenced workflow.