Skip to content

Commit 1dab126

Browse files
committed
feat(ci): allow publish on main branch or force option
- Updates the condition to set the `requires_release` result. - Enables the option to force a publish even if the branch isn't main, streamlining the deployment process. - Improves flexibility for CI workflows when publishing releases.
1 parent eb3fb4e commit 1dab126

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pipeline.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ jobs:
103103
- name: evaluate - requires_release
104104
id: requires_release
105105
run: |
106-
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
106+
if [ "${{ github.ref }}" = "refs/heads/main" ] || \
107+
[ "${{ github.event.inputs.force_publish }}" = "true" ]; then
107108
result=true
108109
else
109110
result=false

0 commit comments

Comments
 (0)