-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (38 loc) · 1.06 KB
/
txs-exporter.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
name: Backup testnets
on:
# allow to run workflow manually
workflow_dispatch: {}
# Triggers the workflow every day at 1am
schedule:
- cron: "0 1 * * *"
jobs:
backup:
name: "backup ${{ matrix.testnet }}"
runs-on: ubuntu-latest
timeout-minutes: 360 # very high; but it can take a while.
permissions:
contents: write
strategy:
fail-fast: false
max-parallel: 1
matrix:
testnet:
- test2.gno.land
- test3.gno.land
- test4.gno.land
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "^1.22.4"
- name: Run backup script
run: make -C ${{ matrix.testnet }} fetch
- name: Run stats script
run: make -C ${{ matrix.testnet }} stats
- name: Run extractor
run: make -C ${{ matrix.testnet }} extractor
- name: Run git pull
run: git pull
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update ${{ matrix.testnet }} backup"