8000 Merge pull request #3128 from circleci/conditional-steps-fix · stackbuilders/circleci-docs@f0b24ff · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit f0b24ff

Browse files
Merge pull request circleci#3128 from circleci/conditional-steps-fix
Don't escape YAML strings unnecessarily
2 parents 9ff1216 + 1af9f78 commit f0b24ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jekyll/_cci2/configuration-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,13 +608,13 @@ jobs: # conditional steps may also be defined in `commands:`
608608
parameters:
609609
custom_checkout:
610610
type: string
611-
default: \"\"
611+
default: ""
612612
machine: true
613613
steps:
614614
- when:
615615
condition: <<parameters.custom_checkout>>
616616
steps:
617-
- run: echo \"my custom checkout\"
617+
- run: echo "my custom checkout"
618618
- unless:
619619
condition: <<parameters.custom_checkout>>
620620
steps:
@@ -623,7 +623,7 @@ workflows:
623623
build-test-deploy:
624624
jobs:
625625
- job_with_optional_custom_checkout:
626-
custom_checkout: \"any non-empty string is truthy\"
626+
custom_checkout: "any non-empty string is truthy"
627627
- job_with_optional_custom_checkout
628628
```
629629

0 commit comments

Comments
 (0)
0