File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,14 @@ jobs:
15
15
uses : aws-actions/configure-aws-credentials@v2
16
16
with :
17
17
aws-region : ${{ secrets.PIPELINE_AWS_REGION }}
18
- role-to-assume : arn:aws:iam::${{ secrets.PIPELINE_AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
18
+ role-to-assume : arn:aws:iam::${{ secrets.PIPELINE_AWS_ACCOUNT_ID }}:role/${{ secrets.PIPELINE_ROLE }}
19
19
role-session-name : github-action
20
20
- name : Validate
21
21
run : |
22
- executionId=$(aws codepipeline start-pipeline-execution --name ${{ secrets.PIPELINE_NAME }}-${{ github.head_ref }} --region ${{ secrets.PIPELINE_AWS_REGION }} --query "pipelineExecutionId" --output text)
22
+ executionId=$(aws codepipeline start-pipeline-execution --name ${{ secrets.PIPELINE_NAME }} --region ${{ secrets.PIPELINE_AWS_REGION }} --query "pipelineExecutionId" --output text)
23
+ sleep 60
23
24
while true; do
24
- status=$(aws codepipeline get-pipeline-execution --pipeline-name ${{ secrets.PIPELINE_NAME }}-${{ github.head_ref }} --region ${{ secrets.PIPELINE_AWS_REGION }} --pipeline-execution-id $executionId --query "pipelineExecution.status" --output text)
25
+ status=$(aws codepipeline get-pipeline-execution --pipeline-name ${{ secrets.PIPELINE_NAME }} --region ${{ secrets.PIPELINE_AWS_REGION }} --pipeline-execution-id $executionId --query "pipelineExecution.status" --output text)
25
26
echo "Pipeline status: $status"
26
27
if [[ "$status" == "Failed" ]]; then
27
28
echo "Pipeline failed."
You can’t perform that action at this time.
0 commit comments