From 294f0840a3addbebbb2112271f57d788013579fd Mon Sep 17 00:00:00 2001 From: Aaron Yi Date: Fri, 25 Oct 2024 10:51:27 +0800 Subject: [PATCH 1/3] fix: Update aws-genai-cicd-suite.yml --- .github/workflows/aws-genai-cicd-suite.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aws-genai-cicd-suite.yml b/.github/workflows/aws-genai-cicd-suite.yml index 80716900..07bae9ab 100644 --- a/.github/workflows/aws-genai-cicd-suite.yml +++ b/.github/workflows/aws-genai-cicd-suite.yml @@ -50,7 +50,10 @@ jobs: else echo "GitHub Token is not set" fi - echo "AWS_ROLE_TO_ASSUME: ${{ vars.AWS_ROLE_TO_ASSUME_VAR }}" + if [ -n "${{ vars.AWS_ROLE_TO_ASSUME_VAR }}" ]; then + echo "Role to Assume is set" + else + echo "Role to Assume is not set" # assume the specified IAM role and set up the AWS credentials for use in subsequent steps. - name: Configure AWS Credentials @@ -76,4 +79,4 @@ jobs: # Removed the invalid input 'generate-unit-test-exclude-files' # output-language: 'zh' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From bb829575bed0ec8b69c6701464b13d8ee56d907d Mon Sep 17 00:00:00 2001 From: yike5460 Date: Fri, 25 Oct 2024 02:58:38 +0000 Subject: [PATCH 2/3] fix: Update aws-genai-cicd-suite.yml --- .github/workflows/aws-genai-cicd-suite.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aws-genai-cicd-suite.yml b/.github/workflows/aws-genai-cicd-suite.yml index 07bae9ab..29642f16 100644 --- a/.github/workflows/aws-genai-cicd-suite.yml +++ b/.github/workflows/aws-genai-cicd-suite.yml @@ -54,6 +54,7 @@ jobs: echo "Role to Assume is set" else echo "Role to Assume is not set" + fi # assume the specified IAM role and set up the AWS credentials for use in subsequent steps. - name: Configure AWS Credentials From 34f924c60c92a8c16f399cb5d0938ffeea9dc307 Mon Sep 17 00:00:00 2001 From: yike5460 Date: Fri, 25 Oct 2024 03:18:43 +0000 Subject: [PATCH 3/3] fix: Update aws-genai-cicd-suite.yml --- .github/workflows/aws-genai-cicd-suite.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/aws-genai-cicd-suite.yml b/.github/workflows/aws-genai-cicd-suite.yml index 29642f16..e31a8e79 100644 --- a/.github/workflows/aws-genai-cicd-suite.yml +++ b/.github/workflows/aws-genai-cicd-suite.yml @@ -56,6 +56,9 @@ jobs: echo "Role to Assume is not set" fi + - name: Debug Environment Variables + run: env | sort + # assume the specified IAM role and set up the AWS credentials for use in subsequent steps. - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4