Skip to content

Commit

Permalink
chore: setup github-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx committed Nov 24, 2023
1 parent c5dd579 commit ac2155b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/txs-exporter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Backup testnets

on:
# allow to run workflow manually
workflow_dispatch: {}

# Triggers the workflow every day at 1am
schedule:
- cron: "0 1 * * *"
Expand All @@ -9,12 +12,14 @@ jobs:
backup:
name: "backup ${{ matrix.testnet }}"
runs-on: ubuntu-latest
timeout-minutes: 30

permissions:
contents: write

strategy:
fail-fast: false
max-parallel: 1
matrix:
testnet:
- test2.gno.land
Expand All @@ -26,6 +31,9 @@ jobs:
- name: Run backup script
run: make -C ${{ matrix.testnet }} fetch

- name: Run git pull
run: git pull

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update ${{ matrix.testnet }} backup"

0 comments on commit ac2155b

Please sign in to comment.