-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 1.01 KB
/
update-resources.yml
File metadata and controls
35 lines (35 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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}}