-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.08 KB
/
openapi-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
44
name: OpenAPI Build
on:
push:
paths:
- 'api/openapi/apis/**'
jobs:
build:
name: OpenAPI Build Bundle
runs-on: ubuntu-latest
container: node:21
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configurate Git Safe Directory
run: git config --global --add safe.directory /__w/reportportal-common-api/reportportal-common-api
- name: Verify OpenAPI
run: |
make lint-all
- name: Update main specification
run: |
make join
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add api/openapi/reportportal-api.yaml
git commit -m "Update reportportal-api.yaml"
git push
- name: Bundle OpenAPI
run: |
make bundle
- name: Upload OpenAPI bundles as artifacts
uses: actions/upload-artifact@v3
with:
name: openapi-bundles
path: build/openapi/