-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (45 loc) · 1.64 KB
/
regen.yml
File metadata and controls
50 lines (45 loc) · 1.64 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
name: Generate JavsScript Code from plugin-pb
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
regen:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3
with:
app-id: ${{ secrets.CQ_APP_ID }}
private-key: ${{ secrets.CQ_APP_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install pnpm
uses: pnpm/action-setup@903f9c1a6ebcba6cf41d87230be49611ac97822e # v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
cache: 'pnpm'
node-version: "24"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate code
run: |
pnpm run proto-clone
pnpm run proto-all
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8
with:
# required so the PR triggers workflow runs
token: ${{ steps.app-token.outputs.token }}
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`.
labels: automerge