Skip to content

Commit 9227de7

Browse files
authored
Fix Invalid YAML (#59420)
1 parent d89bc6a commit 9227de7

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

content/actions/reference/workflows-and-actions/expressions.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,13 @@ Sets `MY_ENV_VAR` to `production` when the ref is `refs/heads/main`, otherwise s
297297

298298
```yaml
299299
env:
300-
MY_ENV_VAR: ${{ case(
301-
github.ref == 'refs/heads/main', 'production',
302-
github.ref == 'refs/heads/staging', 'staging',
303-
startsWith(github.ref, 'refs/heads/feature/'), 'development',
304-
'unknown'
305-
) }}
300+
MY_ENV_VAR: |-
301+
${{ case(
302+
github.ref == 'refs/heads/main', 'production',
303+
github.ref == 'refs/heads/staging', 'staging',
304+
startsWith(github.ref, 'refs/heads/feature/'), 'development',
305+
'unknown'
306+
) }}
306307
```
307308

308309
{% endraw %}

0 commit comments

Comments
 (0)