Automated commit 'DEVREL-1270 (#1473) #12
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: "Build Dereferenced IDN JSON Files" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- idn/sailpoint-api.v3.yaml | |
- idn/v3/** | |
- idn/sailpoint-api.beta.yaml | |
- idn/beta/** | |
workflow_dispatch: | |
jobs: | |
dereference_spec: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR branch | |
uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install swagger-cli and postman | |
run: | | |
npm install -g swagger-cli | |
- name: Dereference API Specification files | |
run: | | |
swagger-cli bundle --dereference idn/sailpoint-api.v3.yaml -t json -o dereferenced/deref-sailpoint-api.v3.json | |
swagger-cli bundle --dereference idn/sailpoint-api.beta.yaml -t json -o dereferenced/deref-sailpoint-api.beta.json | |
- uses: stefanzweifel/git-auto-commit-action@v4 |