-
Notifications
You must be signed in to change notification settings - Fork 17
50 lines (42 loc) · 1.41 KB
/
update_chains_file.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
name: Update config files
on:
workflow_dispatch:
inputs:
chains_file_path:
description: 'Which version of chains.json will be used?'
required: true
type: string
default: v1
schedule:
- cron: '0 8 * * 1'
jobs:
update-files:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set spektr config version
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]
then
echo "CHAINS_VERSION=${{ github.event.inputs.chains_file_path }}" >> $GITHUB_ENV
else
echo "CHAINS_VERSION=${{ secrets.SPEKTR_CONFIG_VERSION }}" >> $GITHUB_ENV
fi
- name: ⚙️ Install dependencies
uses: ./.github/workflows/install-pnpm
- name: 📝 Update chains file
run: pnpm update:chains-file
- name: 📝 Update tokens file
run: pnpm update:tokens-file
- name: ➡️ Make pull request
uses: ./.github/workflows/make-pull-request
with:
commit-files: src/renderer/shared/config/*
commit-message: "ci: update json files"
app-id: ${{ secrets.NOVASAMA_APP_ID}}
app-token: ${{ secrets.NOVASAMA_APP_PRIVATE_KEY}}
branch-name: update-config-files
pr-title: Update json files
pr-body: This PR was generated automatically 🤖
pr-base: dev