mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-18 00:53:56 +09:00
Backport https://github.com/go-gitea/gitea/pull/39787 by @lunny, including the go-yaml bump. The runner counterpart is https://gitea.com/gitea/runner/pulls/1321. Folded (`>`) scalars in workflows gained blank lines and had spaces turned into newlines every time Gitea re-serialized a job. - go-yaml main fixes the accumulating blank lines (https://github.com/yaml/go-yaml/pull/366) and the block scalar indentation indicators (https://github.com/yaml/go-yaml/pull/414), so `BlockSafeString` goes away - The job encoder no longer wraps lines, because go-yaml still wraps more-indented lines of folded scalars and turns a space into a newline Fixes https://github.com/go-gitea/gitea/issues/39775