fix(ci): Default all GHA env variables to 'prod' set (#11572)

Co-authored-by: Shreya Keshive <shreyakeshive@google.com>
This commit is contained in:
Richie Foreman
2025-10-21 15:02:48 -04:00
committed by GitHub
parent 193b4bba91
commit 74a7771943
9 changed files with 12 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ on:
jobs:
change-tags:
runs-on: 'ubuntu-latest'
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
permissions:
packages: 'write'
issues: 'write'

View File

@@ -48,7 +48,7 @@ on:
jobs:
release:
runs-on: 'ubuntu-latest'
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
permissions:
contents: 'write'
packages: 'write'

View File

@@ -31,7 +31,7 @@ on:
jobs:
release:
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
runs-on: 'ubuntu-latest'
permissions:
contents: 'write'

View File

@@ -40,7 +40,7 @@ on:
jobs:
create-patch:
runs-on: 'ubuntu-latest'
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
permissions:
contents: 'write'
pull-requests: 'write'

View File

@@ -50,7 +50,7 @@ jobs:
trigger-patch-release:
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'"
runs-on: 'ubuntu-latest'
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
permissions:
actions: 'write'
contents: 'write'
@@ -83,7 +83,7 @@ jobs:
GITHUB_EVENT_PAYLOAD: '${{ toJSON(github.event) }}'
FORCE_SKIP_TESTS: '${{ github.event.inputs.force_skip_tests }}'
TEST_MODE: '${{ github.event.inputs.test_mode }}'
ENVIRONMENT: '${{ github.event.inputs.environment }}'
ENVIRONMENT: "${{ github.event.inputs.environment || 'prod' }}"
DRY_RUN: '${{ github.event.inputs.dry_run }}'
run: |
node scripts/releasing/patch-trigger.js --dry-run="${DRY_RUN}"

View File

@@ -40,7 +40,7 @@ on:
jobs:
release:
runs-on: 'ubuntu-latest'
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
permissions:
contents: 'write'
packages: 'write'

View File

@@ -39,7 +39,7 @@ jobs:
calculate-versions:
name: 'Calculate Versions and Plan'
runs-on: 'ubuntu-latest'
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
outputs:
STABLE_VERSION: '${{ steps.versions.outputs.STABLE_VERSION }}'
@@ -198,7 +198,7 @@ jobs:
name: 'Publish preview'
needs: ['calculate-versions', 'test']
runs-on: 'ubuntu-latest'
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
permissions:
contents: 'write'
packages: 'write'
@@ -264,7 +264,7 @@ jobs:
name: 'Publish stable'
needs: ['calculate-versions', 'test', 'publish-preview']
runs-on: 'ubuntu-latest'
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
permissions:
contents: 'write'
packages: 'write'

View File

@@ -42,7 +42,7 @@ on:
jobs:
change-tags:
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
runs-on: 'ubuntu-latest'
permissions:
packages: 'write'

View File

@@ -28,7 +28,7 @@ on:
jobs:
verify-release:
environment: '${{ github.event.inputs.environment }}'
environment: "${{ github.event.inputs.environment || 'prod' }}"
runs-on: 'ubuntu-latest'
permissions:
contents: 'read'