Skip to content

Commit 5e1056f

Browse files
committed
fix
1 parent 9af6da7 commit 5e1056f

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/stage-3-build.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
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
@@ -80,7 +80,7 @@ jobs:
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

0 commit comments

Comments
 (0)