File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 34
34
--variables name=GithubUser,value=${{ github.repository_owner }} name=GithubBranch,value=${{ github.ref_name }} \
35
35
--output text \
36
36
--query 'pipelineExecutionId')
37
- ./.github/workflows/monitor_pipelines.sh $PIPELINE_EXEC_ID
37
+ sleep 30
38
38
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
40
55
run : |
41
56
while true; do
42
57
# Check if the stack exists and get its status
You can’t perform that action at this time.
0 commit comments