Skip to content

Commit f007365

Browse files
committed
Add generate workflow
1 parent cf0e8e1 commit f007365

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/generate.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Generate
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch: {}
9+
10+
jobs:
11+
commit:
12+
name: Generate code
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 30
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
with:
19+
ref: ${{ github.head_ref }}
20+
token: ${{ secrets.GH_TOKEN }}
21+
- name: Import GPG key
22+
uses: crazy-max/ghaction-import-gpg@v5
23+
with:
24+
git_user_signingkey: true
25+
git_commit_gpgsign: true
26+
git_committer_name: ${{ secrets.GIT_USER_NAME }}
27+
git_committer_email: ${{ secrets.GIT_USER_EMAIL }}
28+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
29+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
30+
- name: Setup
31+
uses: ./.github/actions/setup
32+
with:
33+
install_dependencies: 'false'
34+
- name: Normalize package-lock.json
35+
run: npm install
36+
- name: Commit
37+
uses: stefanzweifel/git-auto-commit-action@v4
38+
with:
39+
commit_message: Generate code
40+
commit_user_name: ${{ secrets.GIT_USER_NAME }}
41+
commit_user_email: ${{ secrets.GIT_USER_EMAIL }}
42+
commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}>

0 commit comments

Comments
 (0)