Automated commit 'Merge pull request #1381 from sailpoint/karthikj/id… #126
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 Beta" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- idn/sailpoint-api.beta.yaml | |
- idn/beta/** | |
workflow_dispatch: | |
jobs: | |
dereference_beta: | |
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 | |
npm install -g openapi-to-postmanv2 | |
- name: Dereference Beta API Specification and build Postman collection | |
run: | | |
swagger-cli bundle --dereference idn/sailpoint-api.beta.yaml -t yaml -o dereferenced/deref-sailpoint-api.beta.yaml | |
openapi2postmanv2 -s dereferenced/deref-sailpoint-api.beta.yaml -o postman/collections/sailpoint-api-beta.json -p -O folderStrategy=Tags,requestParametersResolution=Schema,exampleParametersResolution=Schema,disableOptionalParameters=true,optimizeConversion=false,stackLimit=50,alwaysInheritAuthentication=true | |
node postman-script/modify-collection.js postman/collections/sailpoint-api-beta.json | |
- uses: stefanzweifel/git-auto-commit-action@v4 |