Skip to content

Commit dc022b1

Browse files
fix: Move debug step before AWS credentials configuration
1 parent a9ad1ce commit dc022b1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
python -m pip install --upgrade pip
3333
pip install -r requirements.txt
3434
35-
- name: Configure AWS credentials
36-
uses: aws-actions/configure-aws-credentials@v4
37-
with:
38-
role-to-assume: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}
39-
aws-region: ${{ env.AWS_REGION }}
40-
4135
- name: Debug AWS Role ARN
4236
run: |
4337
echo "Current branch: ${{ github.ref }}"
4438
echo "Using role ARN: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}"
4539
echo "AWS_ROLE_ARN_DEV exists: ${{ secrets.AWS_ROLE_ARN_DEV != '' }}"
4640
echo "AWS_ROLE_ARN_PROD exists: ${{ secrets.AWS_ROLE_ARN_PROD != '' }}"
4741
42+
- name: Configure AWS credentials
43+
uses: aws-actions/configure-aws-credentials@v4
44+
with:
45+
role-to-assume: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}
46+
aws-region: ${{ env.AWS_REGION }}
47+
4848
- name: Validate SAM template
4949
run: |
5050
# AWS認証情報の確認

0 commit comments

Comments
 (0)