Skip to content

Commit

Permalink
Update workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-marion committed Jan 6, 2025
1 parent b8cd41b commit da17be2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/e2e-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ jobs:
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: ${{ secrets.PIPELINE_AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.PIPELINE_AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
role-to-assume: arn:aws:iam::${{ secrets.PIPELINE_AWS_ACCOUNT_ID }}:role/${{ secrets.PIPELINE_ROLE }}
role-session-name: github-action
- name: Validate
run: |
executionId=$(aws codepipeline start-pipeline-execution --name ${{ secrets.PIPELINE_NAME }}-${{ github.head_ref }} --region ${{ secrets.PIPELINE_AWS_REGION }} --query "pipelineExecutionId" --output text)
executionId=$(aws codepipeline start-pipeline-execution --name ${{ secrets.PIPELINE_NAME }} --region ${{ secrets.PIPELINE_AWS_REGION }} --query "pipelineExecutionId" --output text)
sleep 60
while true; do
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)
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)
echo "Pipeline status: $status"
if [[ "$status" == "Failed" ]]; then
echo "Pipeline failed."
Expand Down
2 changes: 1 addition & 1 deletion integtests/chatbot-api/aurora_workspace_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_add_rss(client: AppSyncClient):

ready = False
retries = 0
while not ready and retries < 10:
while not ready and retries < 20:
time.sleep(5)
retries += 1
document = client.get_document(
Expand Down

0 comments on commit da17be2

Please sign in to comment.