Skip to content

Commit c3ba348

Browse files
committed
fixup! trigger pipeline with variables
1 parent bcd121d commit c3ba348

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/acceptance-tests.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,24 @@ jobs:
3434
--variables name=GithubUser,value=${{ github.repository_owner }} name=GithubBranch,value=${{ github.ref_name }} \
3535
--output text \
3636
--query 'pipelineExecutionId')
37-
./.github/workflows/monitor_pipelines.sh $PIPELINE_EXEC_ID
37+
sleep 30
3838
39-
- name: Check Pipeline Status
39+
# Check the status of the main pipeline execution
40+
MAIN_STATUS=$(aws codepipeline get-pipeline-execution \
41+
--pipeline-name "$MAIN_PIPELINE" \
42+
--pipeline-execution-id "$EXECUTION_ID" \
43+
--query 'pipelineExecution.status' \
44+
--output text)
45+
46+
echo "Main pipeline status: $MAIN_STATUS"
47+
48+
# If the main pipeline is not successful, exit with error
49+
if [ "$MAIN_STATUS" != "InProgress" ]; then
50+
echo "Main pipeline failed. Exiting."
51+
exit 1
52+
fi
53+
54+
- name: Check CFN Status
4055
run: |
4156
while true; do
4257
# Check if the stack exists and get its status

0 commit comments

Comments
 (0)