Skip to content

Commit 853ed9e

Browse files
committed
ci(ci): support workflow_dispatch for deployment determination
1 parent 65b719f commit 853ed9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ jobs:
318318
- name: Determine deployment
319319
id: deploy
320320
run: |
321-
if [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref }}" = "refs/heads/main" ]; then
321+
if { [ "${{ github.event_name }}" = "push" ] || [ "${{ github.event_name }}" = "workflow_dispatch" ]; } && [ "${{ github.ref }}" = "refs/heads/main" ]; then
322322
echo "should-deploy=true" >> "${GITHUB_OUTPUT}"
323323
else
324324
echo "should-deploy=false" >> "${GITHUB_OUTPUT}"

0 commit comments

Comments
 (0)