Skip to content

Commit 60e3a41

Browse files
committed
build(ci): Add a workflow to update protocol parameters
1 parent 3e1e261 commit 60e3a41

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/update-params.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update parameters
2+
3+
on:
4+
schedule:
5+
# Every night at 0:00 UTC
6+
- cron: '0 0 * * *'
7+
workflow_dispatch: {}
8+
9+
env:
10+
BLOCKFROST_PROJECT_ID: ${{ secrets.BLOCKFROST_PROJECT_ID_MAINNET }}
11+
12+
jobs:
13+
update_parameters:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Git checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Update parameters
20+
run: ./fetch-params.sh mainnet
21+
22+
- name: Commit updated files
23+
uses: EndBug/add-and-commit@v9
24+
with:
25+
default_author: github_actions
26+
message: "build: Update protocol parameters [auto]"

0 commit comments

Comments
 (0)