Manual vara snap #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Manual vara snap" | |
on: workflow_dispatch | |
jobs: | |
vara-snap: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
- name: vara snapshot | |
working-directory: ./vara | |
run: | | |
npm install | |
npm run snap | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: vara-snapshot-${{ github.run_id }} | |
path: | | |
./data/vara/ | |
- name: Commit changes | |
run: | | |
git config --global user.email [email protected] | |
git config --global user.name invariantStats | |
git add ./data/ | |
git commit -m "Vara Network snapshot of data done!" | |
- name: GitHub Push | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |