From 294f0840a3addbebbb2112271f57d788013579fd Mon Sep 17 00:00:00 2001 From: Aaron Yi Date: Fri, 25 Oct 2024 10:51:27 +0800 Subject: [PATCH] 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 8071690..07bae9a 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 }}