Skip to content

Commit 90e2129

Browse files
committed
fixup! trigger pipeline with variables
1 parent be5ec3d commit 90e2129

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

.github/workflows/acceptance-tests.yaml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,13 @@ jobs:
2929
- name: Run AWS Pipeline
3030
run: |
3131
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 }} \
3333
--region us-east-2 \
3434
--variables name=GithubUser,value=${{ github.repository_owner }} name=GithubBranch,value=${{ github.ref_name }} \
3535
--output text \
36-
--query 'pipelineExecutionId')
36+
--query 'pipelineExecutionId'
3737
sleep 30
3838
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-
5439
- name: Check CFN Status
5540
run: |
5641
while true; do

0 commit comments

Comments
 (0)