Skip to content

Commit e64009e

Browse files
committed
fix(ci): gate manual release by publish_release input
1 parent b9db3b0 commit e64009e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build-desktop-tauri.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
description: AstrBot source git ref (branch/tag/sha), empty means default ref
1212
required: false
1313
default: ""
14+
publish_release:
15+
description: Publish GitHub Release after successful builds
16+
required: false
17+
type: boolean
18+
default: true
1419
schedule:
1520
- cron: '0 * * * *'
1621

@@ -455,7 +460,7 @@ jobs:
455460
456461
release:
457462
name: Publish GitHub Release
458-
if: ${{ needs.resolve_build_context.outputs.should_build == 'true' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
463+
if: ${{ needs.resolve_build_context.outputs.should_build == 'true' && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_release == 'true')) }}
459464
needs:
460465
- resolve_build_context
461466
- build-linux

0 commit comments

Comments
 (0)