mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-10 12:27:48 +00:00
updated build to separate out each spec with a separate commit
This commit is contained in:
39
.github/workflows/build-dereferenced-spec.yml
vendored
39
.github/workflows/build-dereferenced-spec.yml
vendored
@@ -13,7 +13,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dereference_spec:
|
dereference_spec_v3:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout PR branch
|
- 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
|
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/modify-collection.js postman/collections/sailpoint-api-v3.json
|
||||||
node postman-script/upload-script.js ${{secrets.POSTMAN_API_KEY}} V3
|
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
|
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
|
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/modify-collection.js postman/collections/sailpoint-api-beta.json
|
||||||
node postman-script/upload-script.js ${{secrets.POSTMAN_API_KEY}} Beta
|
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
|
- uses: stefanzweifel/git-auto-commit-action@
|
||||||
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
|
dereference_spec_nerm:
|
||||||
node postman-script/modify-collection.js postman/collections/sailpoint-api-beta.json
|
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
|
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