Skip to content

Commit fa290d1

Browse files
debug logging
1 parent 36f8f37 commit fa290d1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/scripts/dispatch_internal_repo_workflow.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# --overrideProjectName nhs \
3333
# --overrideRoleName nhs-service-iam-role
3434

35-
set -e
35+
#set -e
3636

3737
while [[ $# -gt 0 ]]; do
3838
case $1 in
@@ -279,9 +279,18 @@ echo "[INFO] Triggering workflow '$targetWorkflow' in nhs-notify-internal..."
279279

280280
echo "[DEBUG] Dispatch event payload: $DISPATCH_EVENT"
281281

282-
trigger_response=$(curl -s -L \
282+
echo " curl -s -L \
283283
--fail \
284284
-X POST \
285+
-H \"Accept: application/vnd.github+json\" \
286+
-H \"Authorization: Bearer ${PR_TRIGGER_PAT}\" \
287+
-H \"X-GitHub-Api-Version: 2022-11-28\" \
288+
\"https://api.github.com/repos/NHSDigital/nhs-notify-internal/actions/workflows/$targetWorkflow/dispatches\" \
289+
-d \"$DISPATCH_EVENT\""
290+
291+
trigger_response=$(curl -s -L \
292+
--fail-with-body \
293+
-X POST \
285294
-H "Accept: application/vnd.github+json" \
286295
-H "Authorization: Bearer ${PR_TRIGGER_PAT}" \
287296
-H "X-GitHub-Api-Version: 2022-11-28" \

0 commit comments

Comments
 (0)