Skip to content

Commit 20651b0

Browse files
committed
fix(ci): correct workflow_dispatch input syntax in publish-ovsm.yml
- Change dry_run input from string to boolean type - Update conditional checks to use boolean instead of string comparison - Fix YAML syntax error on line 9 reported by GitHub Actions
1 parent 2c5e1fe commit 20651b0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/publish-ovsm.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ on:
44
push:
55
tags:
66
- 'ovsm-v*' # Trigger on tags like ovsm-v1.0.0
7-
workflow_dispatch: # Allow manual triggering
7+
workflow_dispatch:
88
inputs:
99
dry_run:
10-
description: 'Dry run (don't actually publish)'
10+
description: 'Dry run (do not actually publish)'
1111
required: false
12-
default: 'false'
12+
type: boolean
13+
default: false
1314

1415
env:
1516
CARGO_TERM_COLOR: always
@@ -120,14 +121,14 @@ jobs:
120121
working-directory: crates/ovsm
121122

122123
- name: Dry run publish (check only)
123-
if: github.event.inputs.dry_run == 'true'
124+
if: github.event.inputs.dry_run == true
124125
run: |
125126
echo "🧪 Dry run mode - checking package..."
126127
cargo publish --dry-run --allow-dirty
127128
working-directory: crates/ovsm
128129

129130
- name: Publish to crates.io
130-
if: github.event.inputs.dry_run != 'true'
131+
if: github.event.inputs.dry_run != true
131132
run: |
132133
echo "📦 Publishing OVSM crate to crates.io..."
133134
cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --allow-dirty
@@ -136,7 +137,7 @@ jobs:
136137
CARGO_TERM_COLOR: always
137138

138139
- name: Create GitHub Release
139-
if: github.event.inputs.dry_run != 'true' && github.event_name == 'push'
140+
if: github.event.inputs.dry_run != true && github.event_name == 'push'
140141
uses: softprops/action-gh-release@v1
141142
with:
142143
tag_name: ${{ github.ref_name }}

0 commit comments

Comments
 (0)