github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/harness/downgrader/testdata/step-conditional.yaml.golden (about) 1 pipeline: 2 identifier: default 3 name: default 4 orgIdentifier: default 5 projectIdentifier: default 6 properties: 7 ci: 8 codebase: 9 build: <+input> 10 stages: 11 - stage: 12 identifier: test1 13 name: test 14 spec: 15 cloneCodebase: true 16 execution: 17 steps: 18 - step: 19 identifier: test 20 name: test 21 spec: 22 command: |- 23 go build 24 go test 25 image: golang 26 timeout: "" 27 type: Run 28 when: 29 condition: <+trigger.targetBranch> == "main" || <+trigger.targetBranch> 30 == "develop" 31 stageStatus: Success 32 platform: 33 arch: Amd64 34 os: Linux 35 runtime: 36 spec: {} 37 type: Cloud 38 type: CI 39 when: 40 condition: (<+trigger.event> == "PUSH" || <+trigger.event> == "PR") 41 pipelineStatus: Success