generated from UoaWDCC/react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.32 KB
/
generate-api-client.yml
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
name: Build API Client
on:
push
jobs:
build:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run yarn install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Generate API Client
run: yarn generate:api-client
- name: Prettify API client code
uses: creyD/[email protected]
with:
# This part is also where you can pass other options, for example:
commit_message: "Chore: Prettify code"
prettier_options: "--write frontend/src/api-client/**/*.ts"
- name: Commit new API client
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Chore: Update API client"
commit_user_name: "github-api-actions[bot]"
commit_user_email: "github-api-actions[bot]@users.noreply.github.com"
commit_author: Author <[email protected]>
commit_options: '--no-verify'