-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.22 KB
/
build.yaml
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
38
39
40
41
42
43
name: Build
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build_and_merge:
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Setup
uses: ./.github/actions/install
- name: Build
run: pnpm build
- name: Generate Redoc HTML
run: pnpm codegen
- name: Commit changes
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "<[email protected]>"
git add -A
git diff --quiet && git diff --staged --quiet || git commit -m "Auto-generated build by GitHub Actions"
git push origin ${{ github.head_ref }}