Generate JavsScript Code from plugin-pb #418
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: Generate JavsScript Code from plugin-pb | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
workflow_dispatch: | |
jobs: | |
regen: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: "npm" | |
node-version: "16" | |
- name: Install dependencies | |
run: npm ci | |
- name: Generate code | |
run: | | |
npm run proto-clone | |
npm run proto-all | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
# required so the PR triggers workflow runs | |
token: ${{ secrets.GH_CQ_BOT }} | |
branch: fix/gen_proto | |
base: main | |
title: "fix: Generate JavaScript Code from `plugin-pb`" | |
commit-message: "fix: Generate JavaScript Code from `plugin-pb`" | |
body: This PR was created by a scheduled workflow to regenerate the JavaScript code from `plugin-pb`. | |
author: cq-bot <[email protected]> | |
labels: automerge |