forked from paritytech/metadata-portal
-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (37 loc) · 1.27 KB
/
update-chains-file.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
name: Update chains_config file
on:
workflow_dispatch:
inputs:
environment:
description: 'Which environment are you going to update (dev or prod)?'
required: true
type: choice
default: "prod"
options:
- dev
- prod
jobs:
update-chains-file:
runs-on: ubuntu-latest
steps:
- name: 🛎 Checkout
uses: actions/checkout@v3
- name: 🔧 Install rust dependencies
uses: ./.github/workflows/rust-install
- name: 🛠 Set up env variables
uses: ./.github/workflows/setup-env
- name: 📝 Update chains_config file
uses: actions-rs/cargo@v1
with:
command: run
args: --release -- update-chain-config --env ${{ github.event.inputs.environment }} --version ${{ env.NOVA_CONFIG_VERSION }}
- name: 🗓️Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: ➡️ Make pull request
uses: ./.github/workflows/make-pull-request
with:
commit-path: config*.toml
commit-message: Update config file with chains_config
branch-name: update-chains_config-${{ steps.date.outputs.date }}
github-token: ${{ secrets.GITHUB_TOKEN }}