File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6161
6262 artefact-oas-spec :
63- name : " Build OAS spec (${{ matrix.apimEnv }}) "
63+ name : " Build OAS spec for main "
6464 if : (github.event_name == 'push' && github.ref == 'refs/heads/main')
6565 runs-on : ubuntu-latest
6666 needs : [artefact-jekyll-docs]
8080 nodejs_version : ${{ inputs.nodejs_version }}
8181 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8282
83+ artefact-oas-spec :
84+ name : " Build OAS spec for PR"
85+ if : (inputs.pr_number != '')
86+ runs-on : ubuntu-latest
87+ needs : [artefact-jekyll-docs]
88+ timeout-minutes : 10
89+ steps :
90+ - name : " Checkout code"
91+ uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
92+ - name : " Build OAS spec"
93+ uses : ./.github/actions/build-oas-spec
94+ with :
95+ version : " ${{ inputs.version }}"
96+ apimEnv : internal-dev-pr
97+ buildSandbox : false
98+ nodejs_version : ${{ inputs.nodejs_version }}
99+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
100+
83101 artefact-oas-spec-sandbox :
84102 name : " Build OAS spec for sandbox"
85103 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments