-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (43 loc) · 1.54 KB
/
regen.yml
File metadata and controls
44 lines (43 loc) · 1.54 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
name: Generate Python Code from plugin-pb
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
jobs:
regen:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # 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: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: '3.13'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Generate code
run: |
make clone-proto
make gen-proto
- name: Create Pull Request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
with:
# required so the PR triggers workflow runs
token: ${{ steps.app-token.outputs.token }}
branch: fix/gen_proto
base: main
title: "fix: Generate Python Code from `plugin-pb`"
commit-message: "fix: Generate Python Code from `plugin-pb`"
body: This PR was created by a scheduled workflow to regenerate the Python code from `plugin-pb`.
labels: automerge