From 80d88cc5970fca140619f0f2e41f545e6a0a27f4 Mon Sep 17 00:00:00 2001 From: "Adam D. Cornett" Date: Thu, 8 Aug 2024 13:51:51 -0700 Subject: [PATCH] adding exit 1 if gh cli tool fails to merge a pull request Signed-off-by: Adam D. Cornett --- .../operator-pipeline/templates/openshift/tasks/merge-pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/operator-pipeline/templates/openshift/tasks/merge-pr.yml b/ansible/roles/operator-pipeline/templates/openshift/tasks/merge-pr.yml index b6810b9b1..a99d8ccc0 100644 --- a/ansible/roles/operator-pipeline/templates/openshift/tasks/merge-pr.yml +++ b/ansible/roles/operator-pipeline/templates/openshift/tasks/merge-pr.yml @@ -93,4 +93,5 @@ spec: else echo "Cannot merge PR" echo -n "false" > "$(results.pr_merged.path)" + exit 1 fi