diff --git a/.github/workflows/gen_configs.yml b/.github/workflows/gen_configs.yml index 04659c8d4..8fd25664d 100644 --- a/.github/workflows/gen_configs.yml +++ b/.github/workflows/gen_configs.yml @@ -13,12 +13,22 @@ on: schedule: - cron: '0 0 * * *' workflow_dispatch: + inputs: + target_branch: + description: Branch to run against and target for PR + required: true + default: master + type: string jobs: update_configs: runs-on: ubuntu-22.04 + env: + TARGET_BRANCH: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target_branch || github.ref_name }} steps: - uses: actions/checkout@v4 + with: + ref: ${{ env.TARGET_BRANCH }} - name: Create 128x128 images in icons dir shell: bash @@ -35,13 +45,14 @@ jobs: commit-message: Update coins json file committer: github-actions[bot] author: github-actions[bot] - branch: json-config-update + base: ${{ env.TARGET_BRANCH }} + branch: config-generate/${{ env.TARGET_BRANCH }} delete-branch: true - title: '[BOT] Update coins config json' + title: "[BOT] Update coins config json for ${{ env.TARGET_BRANCH }}" body: | - - Coins JSON config auto-generated on merge to master + - Coins JSON config auto-generated from `${{ env.TARGET_BRANCH }}` - Electrum scan report updated labels: | config-update - reviewers: cipig, smk762, gcharang + reviewers: cipig draft: false