Skip to content

Commit 31939e3

Browse files
committed
TCLOUD-4860: Another attempt to get a default input value
1 parent 97e9620 commit 31939e3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/deploy_docs_v2.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,20 @@ permissions:
1818
id-token: write
1919

2020
env:
21-
# inputs are only defined on a dispatch event, so to test we provide a default...
2221
TARGET: ${{ inputs.environment || 'staging' }}
22+
ACCT: ${{ inputs.environment == 'production' && '990880627107' || '327995277200' }}
23+
BUCKET: ${{ inputs.environment == 'production' && 'tiny-cloud-antora-docs-release' || 'tiny-cloud-antora-docs-preview' }}
24+
RUN: run-${{ github.run_number }}-${{ github.run_attempt }}
2325

2426
jobs:
2527
build:
2628
name: Build Docs and Deploy
2729

2830
if: github.repository == 'tinymce/tinymce-docs' && github.repository_owner == 'tinymce'
2931

30-
runs-on: ubuntu-latest
31-
3232
env:
33-
ACCT: ${{ env.TARGET == 'production' && '990880627107' || '327995277200' }}
34-
BUCKET: ${{ env.TARGET == 'production' && 'tiny-cloud-antora-docs-release' || 'tiny-cloud-antora-docs-preview' }}
35-
RUN: run-${{ github.run_number }}-${{ github.run_attempt }}
33+
34+
runs-on: ubuntu-latest
3635

3736
defaults:
3837
run:

0 commit comments

Comments
 (0)