Skip to content

Commit 622146e

Browse files
committed
fix: allow manual triggering of promote workflow on workflow_dispatch event
Updated the promote workflow to enable manual triggering in addition to automatic execution when a pull request is merged. This change enhances the flexibility of the deployment process.
1 parent 9f51f67 commit 622146e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/promote.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Promote
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
types: [closed]
67
branches:
78
- main
89

910
jobs:
1011
promote:
11-
if: github.event.pull_request.merged == true
12+
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout main branch

0 commit comments

Comments
 (0)