Skip to content

Commit a865429

Browse files
debug: Add more detailed debug information for IAM role ARN
1 parent dc022b1 commit a865429

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ jobs:
3535
- name: Debug AWS Role ARN
3636
run: |
3737
echo "Current branch: ${{ github.ref }}"
38+
echo "Branch condition: ${{ github.ref == 'refs/heads/main' }}"
3839
echo "Using role ARN: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}"
3940
echo "AWS_ROLE_ARN_DEV exists: ${{ secrets.AWS_ROLE_ARN_DEV != '' }}"
4041
echo "AWS_ROLE_ARN_PROD exists: ${{ secrets.AWS_ROLE_ARN_PROD != '' }}"
42+
echo "AWS_ROLE_ARN_DEV length: ${{ secrets.AWS_ROLE_ARN_DEV != '' && length(secrets.AWS_ROLE_ARN_DEV) || 0 }}"
43+
echo "AWS_ROLE_ARN_PROD length: ${{ secrets.AWS_ROLE_ARN_PROD != '' && length(secrets.AWS_ROLE_ARN_PROD) || 0 }}"
4144
4245
- name: Configure AWS credentials
4346
uses: aws-actions/configure-aws-credentials@v4

0 commit comments

Comments
 (0)