Skip to content

Update config files #117

Update config files

Update config files #117

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@v3
- 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_path: src/renderer/shared/config/*
commit_message: "ci: update json files"
pr_title: "Update json files"
branch_name: update-config-files
github_token: ${{ secrets.GITHUB_TOKEN }}