Skip to content

Commit 78c13a3

Browse files
committed
ci: workflow_dispatch inputs environment
1 parent 75c03ec commit 78c13a3

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/deploy-delete.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches:
99
- main
1010
workflow_dispatch:
11+
inputs:
12+
environment:
13+
description: 'Environment to run action against'
14+
type: environment
15+
required: false
1116

1217
concurrency:
1318
group: deploy-delete-${{ github.head_ref || github.run_id }}
@@ -30,4 +35,4 @@ jobs:
3035
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
3136
directory: 'example/dist'
3237
github-token: ${{ secrets.GITHUB_TOKEN }}
33-
github-environment: 'preview'
38+
github-environment: ${{ inputs.environment || 'preview' }}

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
branches:
1010
- main
1111
workflow_dispatch:
12+
inputs:
13+
environment:
14+
description: 'Environment to run actiomn against'
15+
type: environment
16+
required: false
1217

1318
concurrency:
1419
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -31,4 +36,4 @@ jobs:
3136
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
3237
directory: 'example/dist'
3338
github-token: ${{ secrets.GITHUB_TOKEN }}
34-
github-environment: 'preview'
39+
github-environment: ${{ inputs.environment || 'preview' }}

0 commit comments

Comments
 (0)