Skip to content

Commit 774eebb

Browse files
committed
fix: indent PowerShell here-string body in push.yml to fix YAML parse error
PR #343 added a Generate release body step with a PowerShell here-string but the body content (between @ and @) was not indented, causing YAML to interpret ** as alias references. This broke the push workflow with a parse error. Fix: indent the here-string body and closing @ to 8 spaces to stay within the YAML | block scalar.
1 parent 59e5478 commit 774eebb

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/push.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -687,15 +687,15 @@ jobs:
687687
run: |
688688
$buildDate = Get-Date -Format "yyyy-MM-dd"
689689
$body = @"
690-
## Release $env:BUILD_VERSION
691-
692-
**Build Date**: $buildDate
693-
694-
**Full Release Package**: TelegramSearchBot-win-x64-full-$env:BUILD_VERSION.zip
695-
**Updater**: moder_update_updater.exe
696-
697-
### Changes
698-
"@
690+
## Release $env:BUILD_VERSION
691+
692+
**Build Date**: $buildDate
693+
694+
**Full Release Package**: TelegramSearchBot-win-x64-full-$env:BUILD_VERSION.zip
695+
**Updater**: moder_update_updater.exe
696+
697+
### Changes
698+
"@
699699
Set-Content -Path "$env:RUNNER_TEMP\release-body.md" -Value $body -Encoding utf8
700700
Write-Host "Generated release body for version $env:BUILD_VERSION"
701701
- name: Publish full package to GitHub Release

0 commit comments

Comments
 (0)