Skip to content

Sync pledge

Sync pledge #410

Workflow file for this run

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 }}