Skip to content

test workflow 1

test workflow 1 #2

Workflow file for this run

name: Weekly Sentinel Snapshots
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- '*'
jobs:
snapshots:
name: "Sentinel Snapshots"
runs-on: ubuntu-latest
strategy:
matrix:
network: [base-mainnet, bsc-mainnet, eth-mainnet, optimism-mainnet]
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: List files in repository
run: ls -al
- name: Get current date
id: get-date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20.x
- name: Install jq
uses: dcarbone/[email protected]
- name: Set up IPFS
uses: ibnesayeed/setup-ipfs@master
id: ipfs_setup
- name: Build Snapshot
run: ./scripts/manageSnapshot.sh -g ${{ matrix.network }}
- name: Upload Snapshot
run: ./scripts/manageSnapshot.sh -u
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
add-paths: |
manifest.json
commit-message: ${{ steps.get-date.outputs.date }} uupdate manifest
title: 'Update manifests for ${{ steps.get-date.outputs.date }}'