Skip to content

test workflow 2

test workflow 2 #3

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@v4
- 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@v4
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/manageSnapshots.sh -g ${{ matrix.network }}
- name: Upload Snapshot
run: ./scripts/manageSnapshots.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 }}'