Skip to content

Commit 4c92756

Browse files
committed
fix(ci): indent multi-line commit message inside release.yml run block
YAML parser treated unindented continuation lines as top-level keys, breaking the workflow file syntax. Rewrite the commit message as a single printf so everything stays inside the run: | scalar.
1 parent 0b1d833 commit 4c92756

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,8 @@ jobs:
387387
git config user.name "github-actions[bot]"
388388
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
389389
git add packaging/
390-
git commit -m "chore(release): sync manifests to ${GITHUB_REF_NAME}
391-
392-
Auto-generated by .github/workflows/release.yml after publishing
393-
${GITHUB_REF_NAME}. Pulls SHA256SUMS.txt from the release and
394-
rewrites cask / scoop / winget / flatpak manifests to match.
395-
396-
[skip ci]"
390+
msg="$(printf 'chore(release): sync manifests to %s\n\nAuto-generated by .github/workflows/release.yml after publishing\n%s. Pulls SHA256SUMS.txt from the release and rewrites\ncask / scoop / winget / flatpak manifests to match.\n\n[skip ci]' "$GITHUB_REF_NAME" "$GITHUB_REF_NAME")"
391+
git commit -m "$msg"
397392
# Rebase in case main advanced while the release job ran.
398393
git pull --rebase origin main
399394
git push origin HEAD:main

0 commit comments

Comments
 (0)