diff --git a/.github/workflows/aws-genai-cicd-suite.yml b/.github/workflows/aws-genai-cicd-suite.yml index 80716900..e31a8e79 100644 --- a/.github/workflows/aws-genai-cicd-suite.yml +++ b/.github/workflows/aws-genai-cicd-suite.yml @@ -50,7 +50,14 @@ 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" + 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 @@ -76,4 +83,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 }}