-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 1.06 KB
/
regen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@v7
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