Skip to content

Commit bc0631e

Browse files
committed
fix(gha): only run envset step for workflow_dispatch if force is set
1 parent 93857e1 commit bc0631e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
value: ${{ github.event.client_payload.force }}
5252

5353
- name: Set environment variable (workflow_dispatch)
54-
if: github.event_name == 'workflow_dispatch'
54+
if: github.event_name == 'workflow_dispatch' && github.event.inputs.force
5555
uses: alsosee/envset@v1
5656
with:
5757
name: FORCE

0 commit comments

Comments
 (0)