Skip to content

Commit b18caf5

Browse files
committed
fix(ci): Default all GH env variables to 'prod' set
1 parent 0e7b395 commit b18caf5

9 files changed

+12
-12
lines changed

.github/workflows/release-change-tags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ on:
3333
jobs:
3434
change-tags:
3535
runs-on: 'ubuntu-latest'
36-
environment: '${{ github.event.inputs.environment }}'
36+
environment: '${{ github.event.inputs.environment || "prod" }}'
3737
permissions:
3838
packages: 'write'
3939
issues: 'write'

.github/workflows/release-manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ on:
4848
jobs:
4949
release:
5050
runs-on: 'ubuntu-latest'
51-
environment: '${{ github.event.inputs.environment }}'
51+
environment: '${{ github.event.inputs.environment || "prod" }}'
5252
permissions:
5353
contents: 'write'
5454
packages: 'write'

.github/workflows/release-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131

3232
jobs:
3333
release:
34-
environment: '${{ github.event.inputs.environment }}'
34+
environment: '${{ github.event.inputs.environment || "prod" }}'
3535
runs-on: 'ubuntu-latest'
3636
permissions:
3737
contents: 'write'

.github/workflows/release-patch-1-create-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ on:
4040
jobs:
4141
create-patch:
4242
runs-on: 'ubuntu-latest'
43-
environment: '${{ github.event.inputs.environment }}'
43+
environment: '${{ github.event.inputs.environment || "prod" }}'
4444
permissions:
4545
contents: 'write'
4646
pull-requests: 'write'

.github/workflows/release-patch-2-trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
trigger-patch-release:
5151
if: "(github.event_name == 'pull_request' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'hotfix/')) || github.event_name == 'workflow_dispatch'"
5252
runs-on: 'ubuntu-latest'
53-
environment: '${{ github.event.inputs.environment }}'
53+
environment: '${{ github.event.inputs.environment || "prod" }}'
5454
permissions:
5555
actions: 'write'
5656
contents: 'write'
@@ -83,6 +83,6 @@ jobs:
8383
GITHUB_EVENT_PAYLOAD: '${{ toJSON(github.event) }}'
8484
FORCE_SKIP_TESTS: '${{ github.event.inputs.force_skip_tests }}'
8585
TEST_MODE: '${{ github.event.inputs.test_mode }}'
86-
ENVIRONMENT: '${{ github.event.inputs.environment }}'
86+
ENVIRONMENT: '${{ github.event.inputs.environment || "prod" }}'
8787
run: |
8888
node scripts/releasing/patch-trigger.js --dry-run=${{ github.event.inputs.dry_run }}

.github/workflows/release-patch-3-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ on:
4040
jobs:
4141
release:
4242
runs-on: 'ubuntu-latest'
43-
environment: '${{ github.event.inputs.environment }}'
43+
environment: '${{ github.event.inputs.environment || "prod" }}'
4444
permissions:
4545
contents: 'write'
4646
packages: 'write'

.github/workflows/release-promote.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
calculate-versions:
4040
name: 'Calculate Versions and Plan'
4141
runs-on: 'ubuntu-latest'
42-
environment: '${{ github.event.inputs.environment }}'
42+
environment: '${{ github.event.inputs.environment || "prod" }}'
4343

4444
outputs:
4545
STABLE_VERSION: '${{ steps.versions.outputs.STABLE_VERSION }}'
@@ -179,7 +179,7 @@ jobs:
179179
name: 'Publish preview'
180180
needs: ['calculate-versions', 'test']
181181
runs-on: 'ubuntu-latest'
182-
environment: '${{ github.event.inputs.environment }}'
182+
environment: '${{ github.event.inputs.environment || "prod" }}'
183183
permissions:
184184
contents: 'write'
185185
packages: 'write'
@@ -245,7 +245,7 @@ jobs:
245245
name: 'Publish stable'
246246
needs: ['calculate-versions', 'test', 'publish-preview']
247247
runs-on: 'ubuntu-latest'
248-
environment: '${{ github.event.inputs.environment }}'
248+
environment: '${{ github.event.inputs.environment || "prod" }}'
249249
permissions:
250250
contents: 'write'
251251
packages: 'write'

.github/workflows/release-rollback.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ on:
4242

4343
jobs:
4444
change-tags:
45-
environment: '${{ github.event.inputs.environment }}'
45+
environment: '${{ github.event.inputs.environment || "prod" }}'
4646
runs-on: 'ubuntu-latest'
4747
permissions:
4848
packages: 'write'

.github/workflows/verify-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on:
2828

2929
jobs:
3030
verify-release:
31-
environment: '${{ github.event.inputs.environment }}'
31+
environment: '${{ github.event.inputs.environment || "prod" }}'
3232
runs-on: 'ubuntu-latest'
3333
permissions:
3434
contents: 'read'

0 commit comments

Comments
 (0)