File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -29,28 +29,13 @@ jobs:
29
29
- name : Run AWS Pipeline
30
30
run : |
31
31
echo "Triggering AWS Pipeline"
32
- PIPELINE_EXEC_ID=$( aws codepipeline start-pipeline-execution --name ${{ secrets.PIPELINE_NAME }} \
32
+ aws codepipeline start-pipeline-execution --name ${{ secrets.PIPELINE_NAME }} \
33
33
--region us-east-2 \
34
34
--variables name=GithubUser,value=${{ github.repository_owner }} name=GithubBranch,value=${{ github.ref_name }} \
35
35
--output text \
36
- --query 'pipelineExecutionId')
36
+ --query 'pipelineExecutionId'
37
37
sleep 30
38
38
39
- # Check the status of the main pipeline execution
40
- MAIN_STATUS=$(aws codepipeline get-pipeline-execution \
41
- --pipeline-name ${{ secrets.PIPELINE_NAME }} \
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
39
- name : Check CFN Status
55
40
run : |
56
41
while true; do
You can’t perform that action at this time.
0 commit comments