Skip to content

[Check] Update Config and Create PR #154

[Check] Update Config and Create PR

[Check] Update Config and Create PR #154

name: "[Check] Update Config and Create PR"
on:
schedule:
# Runs at midnight UTC every day at 01:00 AM CET
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update-config:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.TREZOR_BOT_TOKEN }}
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: yarn install --immutable
- name: Setup Git config
run: |
git config --global user.name "trezor-ci"
git config --global user.email "${{ secrets.TREZOR_BOT_EMAIL }}"
- name: Check for changes and create PR
env:
GITHUB_TOKEN: ${{ secrets.TREZOR_BOT_TOKEN }}
run: yarn tsx ./scripts/ci/check-connect-data.ts