Skip to content

Commit 8af3706

Browse files
committed
TCLOUD-4860: Try a tweak to read the environment input
1 parent 975e707 commit 8af3706

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/deploy_docs_v2.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ permissions:
1818
id-token: write
1919

2020
env:
21+
ENVNAME: ${{ inputs.environment }}
2122
ACCT: ${{ inputs.environment == 'production' && '990880627107' || '327995277200' }}
2223
BUCKET: ${{ inputs.environment == 'production' && 'tiny-cloud-antora-docs-release' || 'tiny-cloud-antora-docs-preview' }}
2324
RUN: run-${{ github.run_number }}-${{ github.run_attempt }}
@@ -61,8 +62,8 @@ jobs:
6162
- name: configure aws credentials
6263
uses: aws-actions/[email protected]
6364
with:
64-
role-to-assume: 'arn:aws:iam::${{ env.ACCT }}:role/${{ inputs.environment }}-tinymce-docs-update'
65-
role-session-name: tinymce-docs-${{ inputs.environment }}-release
65+
role-to-assume: 'arn:aws:iam::${{ env.ACCT }}:role/${{ env.ENVNAME }}-tinymce-docs-update'
66+
role-session-name: tinymce-docs-${{ env.ENVNAME }}-release
6667
aws-region: us-east-1
6768

6869
- name: Upload website preview to S3

0 commit comments

Comments
 (0)