generated from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 33
42 lines (40 loc) · 1.19 KB
/
publish-schemas.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
38
39
40
41
42
name: Schemas Publisher
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- '.github/**'
- README.md
jobs:
resolve-and-update-schema:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@master
with:
ref: 'master'
- name: Install Redocly
uses: actions/setup-node@v4
- run: npm i -g @redocly/cli@latest
- name: Run Script
shell: bash
run: |
chmod +x ./scripts/merge-openapi-specs.sh
./scripts/merge-openapi-specs.sh
- name: Delete Generated Files
run: |
if [[ -d ./openapi/schemas/temp_schema_bundle ]]; then
rmdir -r ./openapi/schemas/temp_schema_bundle
fi
- name: Pull changes from remote
run: git pull origin master
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update schema
commit_options: '--signoff'
branch: master
commit_user_name: l5io
commit_user_email: [email protected]
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>