Skip to content

Update config files #157

Update config files

Update config files #157

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