Skip to content

Commit fb13c62

Browse files
CCM-11942 drop infrareponme from static workflow calls
1 parent ca91c24 commit fb13c62

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/scripts/dispatch_internal_repo_workflow.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# All arguments are required except terraformAction, and internalRef.
1717
# Example:
1818
# ./dispatch_internal_repo_workflow.sh \
19-
# --infraRepoName "nhs-notify-web-template-management" \
19+
# --infraRepoName "nhs-notify-iam-webauth" \
2020
# --releaseVersion "v1.2.3" \
2121
# --targetWorkflow "deploy.yaml" \
2222
# --targetEnvironment "prod" \
@@ -123,6 +123,7 @@ DISPATCH_EVENT=$(jq -ncM \
123123

124124
echo "[INFO] Triggering workflow '$targetWorkflow' in nhs-notify-internal..."
125125

126+
set -x
126127
trigger_response=$(curl -s -L \
127128
--fail \
128129
-X POST \
@@ -131,6 +132,7 @@ trigger_response=$(curl -s -L \
131132
-H "X-GitHub-Api-Version: 2022-11-28" \
132133
"https://api.github.com/repos/NHSDigital/nhs-notify-internal/actions/workflows/$targetWorkflow/dispatches" \
133134
-d "$DISPATCH_EVENT" 2>&1)
135+
set +x
134136

135137
if [[ $? -ne 0 ]]; then
136138
echo "[ERROR] Failed to trigger workflow. Response: $trigger_response"
@@ -146,11 +148,13 @@ workflow_run_url=""
146148

147149
for _ in {1..18}; do
148150

151+
set -x
149152
response=$(curl -s -L \
150153
-H "Accept: application/vnd.github+json" \
151154
-H "Authorization: Bearer ${PR_TRIGGER_PAT}" \
152155
-H "X-GitHub-Api-Version: 2022-11-28" \
153156
"https://api.github.com/repos/NHSDigital/nhs-notify-internal/actions/runs?event=workflow_dispatch")
157+
set +x
154158

155159
if ! echo "$response" | jq empty 2>/dev/null; then
156160
echo "[ERROR] Invalid JSON response from GitHub API during workflow polling:"

.github/workflows/pr_closed.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555
PR_TRIGGER_PAT: ${{ secrets.PR_TRIGGER_PAT }}
5656
run: |
5757
bash .github/scripts/dispatch_internal_repo_workflow.sh \
58-
--infraRepoName "nhs-notify-web-template-management" \
5958
--releaseVersion "main" \
6059
--targetWorkflow "dispatch-deploy-static-notify-web-template-management-env.yaml" \
6160
--targetEnvironment "main" \

.github/workflows/release_created.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
PR_TRIGGER_PAT: ${{ secrets.PR_TRIGGER_PAT }}
3232
run: |
3333
bash .github/scripts/dispatch_internal_repo_workflow.sh \
34-
--infraRepoName "nhs-notify-web-template-management" \
3534
--releaseVersion "${{ github.event.release.tag_name }}" \
3635
--targetWorkflow "dispatch-deploy-static-notify-web-template-management-env.yaml" \
3736
--targetEnvironment "main" \

0 commit comments

Comments
 (0)