File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
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."
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def test_add_rss(client: AppSyncClient):
84
84
85
85
ready = False
86
86
retries = 0
87
- while not ready and retries < 10 :
87
+ while not ready and retries < 20 :
88
88
time .sleep (5 )
89
89
retries += 1
90
90
document = client .get_document (
You can’t perform that action at this time.
0 commit comments