Skip to content

Commit 18bd1a0

Browse files
vaindclaude
andcommitted
fix: Add proper YAML quoting to version update script
Ensures the PowerShell script properly quotes version values in YAML to maintain valid syntax when updating _workflow_version defaults. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2aa9474 commit 18bd1a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update-version.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ foreach ($filePath in $workflowFiles) {
3030
$oldDefault = $Matches[1]
3131

3232
# Replace the default value for _workflow_version
33-
$newContent = $content -replace '((?ms)_workflow_version:.*?default:\s*)([^\s#]+)', "`${1}$NewVersion"
33+
$newContent = $content -replace '((?ms)_workflow_version:.*?default:\s*)([^\s#]+)', "`${1}'$NewVersion'"
3434

3535
# Write the updated content back to the file
3636
$newContent | Out-File -FilePath $filePath -Encoding utf8 -NoNewline

0 commit comments

Comments
 (0)