Update CKB client versions #376
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update CKB client versions | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
default: | |
name: Update CKB client versions | |
runs-on: ubuntu-latest | |
environment: neuron-bot | |
permissions: | |
pull-requests: write # open PR | |
contents: write # update version files | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.15.1 | |
- name: Update versions | |
id: update_versions | |
run: | | |
npm run update:client-versions | |
git add .ckb-version .ckb-light-version compatible.json | |
- name: Set GPG | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Open PR to develop branch | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: Update ckb client versions | |
commit-message: 'feat: update ckb client versions' | |
body: 'Update versions of builtin CKB node and light client' | |
committer: Chen Yu <chenyu@magickbase.com> | |
branch: update-ckb-client-versions |