Skip to content

Commit 7936377

Browse files
committed
add workflow to regenerate generated artifacts
1 parent e35b078 commit 7936377

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/generate.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update generated artifacts
2+
3+
on:
4+
workflow_dispatch:
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
generate:
12+
name: Update generated artifacts
13+
runs-on: ubuntu-24.04
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v5
18+
19+
- name: Setup go
20+
uses: actions/setup-go@v6
21+
with:
22+
go-version-file: go.mod
23+
24+
- name: Update generated artifacts
25+
run: |
26+
go mod tidy
27+
make generate
28+
29+
git config user.name "${{ vars.WORKFLOW_USER_NAME }}"
30+
git config user.email "${{ vars.WORKFLOW_USER_EMAIL }}"
31+
git add -A
32+
git commit -m "Update generated artifacts"
33+
git push

0 commit comments

Comments
 (0)