Update Mgmt Api Docs #7
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
name: Update Mgmt Api Docs | |
on: | |
schedule: | |
# Run at 00:00 UTC every Monday | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
jobs: | |
update-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
sparse-checkout: | | |
apps/docs | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install deps | |
run: npm ci | |
- name: Change to apps/docs/spec directory and run make command | |
working-directory: apps/docs/spec | |
run: make download.api.v1 dereference.api.v1 generate.sections.api.v1 format | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: 'feat: update mgmt api docs' | |
title: 'feat: update mgmt api docs' | |
body: 'This PR updates mgmt api docs automatically.' | |
branch: 'gha/auto-update-mgmt-api-docs' | |
base: 'master' |