-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (46 loc) · 1.55 KB
/
refresh-configurations.yaml
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: Refresh Configurations
on:
schedule:
- cron: '00 01 * * *'
workflow_dispatch:
jobs:
nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2.3.3
- name: Download from The Cardano Book (mainnet)
shell: bash
run: |
.github/scripts/download-all.sh $CARDANO_CONFIG_URL $CARDANO_NETWORK
env:
CARDANO_CONFIG_URL: https://book.world.dev.cardano.org/environments/
CARDANO_NETWORK: mainnet
- name: Download from The Cardano Book (preprod)
shell: bash
run: |
.github/scripts/download-all.sh $CARDANO_CONFIG_URL $CARDANO_NETWORK
env:
CARDANO_CONFIG_URL: https://book.world.dev.cardano.org/environments
CARDANO_NETWORK: preprod
- name: Download from The Cardano Book (preview)
shell: bash
run: |
.github/scripts/download-all.sh $CARDANO_CONFIG_URL $CARDANO_NETWORK
env:
CARDANO_CONFIG_URL: https://book.world.dev.cardano.org/environments
CARDANO_NETWORK: preview
- name: Download from The Cardano Book (sanchonet)
shell: bash
run: |
.github/scripts/download-all.sh $CARDANO_CONFIG_URL $CARDANO_NETWORK
env:
CARDANO_CONFIG_URL: https://book.world.dev.cardano.org/environments
CARDANO_NETWORK: sanchonet
- name: Push new configurations
shell: bash
run: |
git status -s
.github/scripts/update-when-new.sh $CARDANO_CONFIG_URL
env:
CARDANO_CONFIG_URL: https://book.world.dev.cardano.org/environments