-
Notifications
You must be signed in to change notification settings - Fork 394
31 lines (29 loc) · 904 Bytes
/
sync-pledge.yml
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
name: Sync pledge
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
cron:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Read .nvmrc
run: echo "NVMRC=$(cat ./.nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Use Node + Yarn
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: "yarn"
- run: yarn install --frozen-lockfile
working-directory: .github/workflows/pledge-signer-sync
- name: Sync pledge addresses
run: node pledge-sync.js
working-directory: .github/workflows/pledge-signer-sync
env:
GALXE_ACCESS_TOKEN: ${{ secrets.GALXE_ACCESS_TOKEN }}
FIRESTORE_USER: ${{ vars.FIRESTORE_USER }}
FIRESTORE_PASSWORD: ${{ secrets.FIRESTORE_PASSWORD }}