Skip to content

Commit fe80fef

Browse files
authored
Merge pull request #248 from aignostics/chore/parameterise-platform-environment
chore/parameterise platform environment
2 parents f59390f + fb17f6e commit fe80fef

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ on:
1111
types: [opened, synchronize, reopened]
1212
release:
1313
types: [created]
14+
workflow_dispatch:
15+
inputs:
16+
platform_environment:
17+
description: 'Environment to test against'
18+
required: false
19+
default: 'staging'
20+
type: choice
21+
options:
22+
- staging
23+
- production
1424

1525
concurrency:
1626
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
@@ -84,7 +94,7 @@ jobs:
8494
(!contains(github.event.pull_request.labels.*.name, 'build:native:only'))
8595
uses: ./.github/workflows/_test.yml
8696
with:
87-
platform_environment: "staging"
97+
platform_environment: ${{ inputs.platform_environment || 'staging' }}
8898
commit_message: ${{ needs.get-commit-message.outputs.commit_message }}
8999
permissions:
90100
attestations: write

0 commit comments

Comments
 (0)