Skip to content

Commit 5327d19

Browse files
CCM-11942 Removal of another duplication
1 parent 9794b7e commit 5327d19

File tree

4 files changed

+33
-78
lines changed

4 files changed

+33
-78
lines changed

.github/workflows/pr_closed.yaml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,22 @@ jobs:
4545
matrix:
4646
component: [acct, app]
4747

48-
uses: ./.github/workflows/reusable_internal_repo_build.yaml
49-
secrets: inherit
50-
with:
51-
releaseVersion: main
52-
targetWorkflow: "dispatch-deploy-static-notify-web-template-management-env.yaml"
53-
targetEnvironment: "main"
54-
targetAccountGroup: "nhs-notify-template-management-dev"
55-
targetComponent: ${{ matrix.component }}
56-
terraformAction: "apply"
48+
steps:
49+
- name: Checkout repository
50+
uses: actions/checkout@v4
51+
52+
- name: Updating Main Environment
53+
env:
54+
PR_TRIGGER_PAT: ${{ secrets.PR_TRIGGER_PAT }}
55+
run: |
56+
bash .github/scripts/dispatch_internal_repo_workflow.sh \
57+
--infraRepoName "nhs-notify-web-template-management" \
58+
--releaseVersion "main" \
59+
--targetWorkflow "dispatch-deploy-static-notify-web-template-management-env.yaml" \
60+
--targetEnvironment "main" \
61+
--targetAccountGroup "nhs-notify-template-management-dev" \
62+
--targetComponent "${{ matrix.component }}" \
63+
--terraformAction "apply"
5764
5865
check-event-schemas-version-change:
5966
name: Check for event schemas package version change

.github/workflows/release_created.yaml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111
jobs:
1212
deploy-main:
1313
name: Deploy changes to main in nonprod AWS Account
14+
runs-on: ubuntu-latest
1415

1516
permissions:
1617
id-token: write
@@ -21,12 +22,19 @@ jobs:
2122
matrix:
2223
component: [acct, app]
2324

24-
uses: ./.github/workflows/reusable_internal_repo_build.yaml
25-
secrets: inherit
26-
with:
27-
releaseVersion: ${{ github.event.release.tag_name }}
28-
targetWorkflow: "dispatch-deploy-static-notify-web-template-management-env.yaml"
29-
targetEnvironment: "main"
30-
targetAccountGroup: "nhs-notify-template-management-nonprod"
31-
targetComponent: ${{ matrix.component }}
32-
terraformAction: "apply"
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
- name: Deploy Nonprod Environment
30+
env:
31+
PR_TRIGGER_PAT: ${{ secrets.PR_TRIGGER_PAT }}
32+
run: |
33+
bash .github/scripts/dispatch_internal_repo_workflow.sh \
34+
--infraRepoName "nhs-notify-web-template-management" \
35+
--releaseVersion "${{ github.event.release.tag_name }}" \
36+
--targetWorkflow "dispatch-deploy-static-notify-web-template-management-env.yaml" \
37+
--targetEnvironment "main" \
38+
--targetAccountGroup "nhs-notify-template-management-nonprod" \
39+
--targetComponent "${{ matrix.component }}" \
40+
--terraformAction "apply"

.github/workflows/reusable_internal_repo_build.yaml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/stage-4-acceptance.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ permissions:
1313
contents: read
1414

1515
jobs:
16-
1716
create-sandbox-environment:
1817
name: Create Sandbox Environment
1918
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)