Skip to content

Commit 72d418c

Browse files
committed
Pass env as input too
1 parent 8c9fc1b commit 72d418c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/fixtures-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
builder-host:
1010
required: true
1111
type: string
12+
environment:
13+
required: true
14+
type: string
1215
secrets:
1316
PRIVATE_GITHUB_DEPLOY_TOKEN:
1417
required: true
@@ -27,7 +30,7 @@ jobs:
2730
runs-on: ${{ matrix.os }}
2831

2932
environment:
30-
name: development
33+
name: ${{ inputs.environment }}
3134

3235
env:
3336
DATABASE_URL: postgres://

.github/workflows/vercel-deploy-staging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ jobs:
9090
with:
9191
builder-url: ${{ needs.deployment.outputs.builder-url }}
9292
builder-host: ${{ needs.deployment.outputs.builder-host }}
93+
environment: development
9394
secrets:
95+
# We are not passing the secret here (as it does not exist in the current environment).
96+
# Instead, this serves as a signal to the calling workflow that it has permission to extract it from the environment.
9497
PRIVATE_GITHUB_DEPLOY_TOKEN: ${{ secrets.PRIVATE_GITHUB_DEPLOY_TOKEN }}
9598

9699
delete-github-deployments:

0 commit comments

Comments
 (0)