Merge remote-tracking branch 'origin/main' #858
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you change the name, please change workflows in the static.yml file | |
name: Bundle and build Open API documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GH_PAT }} | |
- name: Set up Node.js 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Install dependencies and run bundle openapi | |
run: | | |
npm ci | |
npm run validate | |
npm run bundle | |
npm run generate-docs | |
- name: Commit and push changes | |
uses: EndBug/[email protected] | |
with: | |
author_name: GitHub Action | |
author_email: [email protected] | |
message: "Bundle openapi.yml and commit updated code" | |
branch: ${{ github.head_ref }} |