Skip to content

Commit 5547b5c

Browse files
committed
Add generate workflow
1 parent 9458af9 commit 5547b5c

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/generate.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Generate
3+
4+
on:
5+
push:
6+
branches-ignore:
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@v4
18+
with:
19+
ref: ${{ github.head_ref }}
20+
token: ${{ secrets.GH_TOKEN }}
21+
- name: Import GPG key
22+
uses: crazy-max/ghaction-import-gpg@v6
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 Gemfile.lock
35+
run: bundle install
36+
- name: Commit
37+
uses: stefanzweifel/git-auto-commit-action@v5
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)