mirror of
https://gitea.com/gitea/act
synced 2026-05-06 01:37:48 +02:00
Fix yaml with prefixed newline broken setjob
This commit is contained in:
14
pkg/jobparser/testdata/prefixed_newline.in.yaml
vendored
Normal file
14
pkg/jobparser/testdata/prefixed_newline.in.yaml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
name: Step with leading new line
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "\nExtract tag for variant"
|
||||
id: extract_tag
|
||||
run: |
|
||||
|
||||
echo Test
|
||||
15
pkg/jobparser/testdata/prefixed_newline.out.yaml
vendored
Normal file
15
pkg/jobparser/testdata/prefixed_newline.out.yaml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Step with leading new line
|
||||
"on":
|
||||
push:
|
||||
jobs:
|
||||
test:
|
||||
name: test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: extract_tag
|
||||
name: |2-
|
||||
|
||||
Extract tag for variant
|
||||
run: |2
|
||||
|
||||
echo Test
|
||||
Reference in New Issue
Block a user