test workflow 6 #7
Workflow file for this run
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: 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: 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: Generate networks file | |
run: ./scripts/getSFMetadata.sh | |
- 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 }}' |