mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 11:34:01 +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
16 lines
226 B
YAML
16 lines
226 B
YAML
name: Step with leading new line
|
|
'on':
|
|
push:
|
|
jobs:
|
|
test:
|
|
name: test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: extract_tag
|
|
name: |-
|
|
|
|
Extract tag for variant
|
|
run: |
|
|
|
|
echo Test
|