Skip to content

Commit 1877c9f

Browse files
committed
Add "Generate" workflow
1 parent c44cd88 commit 1877c9f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/generate.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Generate
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
7+
jobs:
8+
generate:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
submodules: recursive
14+
- uses: actions/setup-node@v3
15+
with:
16+
go-version: "1.19.x"
17+
- run: git submodule update --init --recursive --remote
18+
- run: npm run generate
19+
- uses: peter-evans/create-pull-request@v5
20+
with:
21+
commit-message: "chore: update submodules and npm run generate"
22+
branch: generate
23+
title: "Changes by ${{ github.workflow }} workflow"
24+
body: "Automated changes by [${{ github.workflow }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) workflow run"

0 commit comments

Comments
 (0)