File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 version : " ${{ inputs.version }}"
6060 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6161
62- artefact-oas-spec :
62+ artefact-oas-spec-main :
6363 name : " Build OAS spec for main"
6464 if : (github.event_name == 'push' && github.ref == 'refs/heads/main')
6565 runs-on : ubuntu-latest
8080 nodejs_version : ${{ inputs.nodejs_version }}
8181 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8282
83- artefact-oas-spec :
83+ artefact-oas-spec-pr :
8484 name : " Build OAS spec for PR"
8585 if : (inputs.pr_number != '')
8686 runs-on : ubuntu-latest
@@ -115,6 +115,14 @@ jobs:
115115 nodejs_version : ${{ inputs.nodejs_version }}
116116 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
117117
118+ artefact-oas-spec :
119+ name : " OAS spec ready"
120+ runs-on : ubuntu-latest
121+ needs : [artefact-oas-spec-pr, artefact-oas-spec-main]
122+ if : always() && !failure()
123+ steps :
124+ - run : echo "OAS spec build complete"
125+
118126 artefact-sdks :
119127 name : " Build SDKs"
120128 runs-on : ubuntu-latest
@@ -206,7 +214,7 @@ jobs:
206214 name : " Build proxy for sandbox"
207215 runs-on : ubuntu-latest
208216 if : inputs.deploy_proxy == 'true'
209- needs : [artefact-oas-spec-sandbox, pr-create-dynamic-environment]
217+ needs : [artefact-oas-spec-sandbox, artefact-oas-spec, pr-create-dynamic-environment]
210218 timeout-minutes : 10
211219 env :
212220 PROXYGEN_API_NAME : nhs-notify-supplier
You can’t perform that action at this time.
0 commit comments