Skip to content

Commit 1f5ffc0

Browse files
committed
pass environment to e2e test workflow
1 parent fb27eb3 commit 1f5ffc0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/build_test_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ jobs:
8787

8888
e2e-test:
8989
needs: changes
90-
environment: ${{ github.event.pull_request.head.repo.fork == true && 'prod-external' || 'prod' }}
9190
strategy:
9291
fail-fast: false
9392
matrix:
@@ -99,5 +98,6 @@ jobs:
9998
uses: ./.github/workflows/e2e-test.yaml
10099
secrets: inherit
101100
with:
101+
environment: ${{ github.event.pull_request.head.repo.fork == true && 'prod-external' || 'prod' }}
102102
e2e-selector: ${{ matrix.flavor }}
103103
e2e-flags: ${{ matrix.flavor == 'quick' && '' || '--assert-timeout 20m0s'}}

.github/workflows/e2e-test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
e2e-flags:
1212
type: string
1313
description: "Flags to pass to chainsaw when running e2e tests"
14+
environment:
15+
required: false
16+
type: string
17+
default: ''
1418
workflow_dispatch:
1519
inputs:
1620
e2e-selector:
@@ -70,6 +74,7 @@ jobs:
7074
name: ${{ format('{0}-e2e-tests', inputs.e2e-selector) }}
7175
if: ${{contains(fromJSON(needs.changes.outputs.paths), 'src')}}
7276
runs-on: ubuntu-latest
77+
environment: ${{ inputs.environment }}
7378
env:
7479
GITHUB_TOKEN: ${{ secrets.github_token }}
7580
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}

0 commit comments

Comments
 (0)