feat: Add corporate card transactions exports api docs #2723
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
# This is a basic workflow to help you get started with Actions | |
name: bundle openAPI yaml file | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the main branch | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
run: | |
name: openapi bundler | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Install dependencies | |
run: npm install -g @redocly/[email protected] | |
- name: Update authorization docs | |
run: openapi bundle -o reference/authorization.yaml src/authorization/openapi.yaml | |
- name: Update spender docs | |
run: openapi bundle -o reference/spender.yaml src/spender/openapi.yaml | |
- name: Update approver docs | |
run: openapi bundle -o reference/approver.yaml src/approver/openapi.yaml | |
- name: Update common docs | |
run: openapi bundle -o reference/common.yaml src/common/openapi.yaml | |
- name: Update admin docs | |
run: openapi bundle -o reference/admin.yaml src/admin/openapi.yaml | |
- name: Update hod docs | |
run: openapi bundle -o reference/hod.yaml src/hod/openapi.yaml | |
- name: Update hop docs | |
run: openapi bundle -o reference/hop.yaml src/hop/openapi.yaml | |
- name: Update accountant docs | |
run: openapi bundle -o reference/accountant.yaml src/accountant/openapi.yaml | |
- name: Update super_admin docs | |
run: openapi bundle -o reference/super_admin.yaml src/super_admin/openapi.yaml | |
- name: Update owner docs | |
run: openapi bundle -o reference/owner.yaml src/owner/openapi.yaml | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v6 | |
with: | |
author_name: Siva | |
author_email: [email protected] | |
message: "Auto generate API docs" | |
add: "./reference" |