-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (43 loc) · 1.31 KB
/
weekly-snapsots.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 }}'