mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-10 04:19:19 +00:00
updated build to separate out each spec with a separate commit
This commit is contained in:
41
.github/workflows/build-dereferenced-spec.yml
vendored
41
.github/workflows/build-dereferenced-spec.yml
vendored
@@ -13,7 +13,7 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
dereference_spec:
|
||||
dereference_spec_v3:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout PR branch
|
||||
@@ -32,12 +32,43 @@ jobs:
|
||||
openapi2postmanv2 -s dereferenced/deref-sailpoint-api.v3.yaml -o postman/collections/sailpoint-api-v3.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-v3.json
|
||||
node postman-script/upload-script.js ${{secrets.POSTMAN_API_KEY}} V3
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
dereference_spec_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 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
|
||||
node postman-script/upload-script.js ${{secrets.POSTMAN_API_KEY}} Beta
|
||||
swagger-cli bundle --dereference nerm/openapi.yaml -t yaml -o dereferenced/deref-nerm-api.yaml
|
||||
openapi2postmanv2 -s dereferenced/deref-nerm-api.yaml -o postman/collections/nerm-api.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@
|
||||
dereference_spec_nerm:
|
||||
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 API Specification and build Postman collection
|
||||
run: |
|
||||
swagger-cli bundle --dereference nerm/openapi.yaml -t yaml -o dereferenced/deref-sailpoint-api.nerm.yaml
|
||||
openapi2postmanv2 -s dereferenced/deref-sailpoint-api.nerm.yaml -o postman/collections/sailpoint-api-nerm.json -p -O folderStrategy=Tags,requestParametersResolution=Schema,exampleParametersResolution=Schema,disableOptionalParameters=true,optimizeConversion=false,stackLimit=50,alwaysInheritAuthentication=true
|
||||
node postman-script/upload-script.js ${{secrets.POSTMAN_API_KEY}} Nerm
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
Reference in New Issue
Block a user