Skip to content

Commit 47eeaf2

Browse files
authored
Merge pull request #5 from nnellans/nnellans-patch-4
Clarify optional properties in README
2 parents b8f6e97 + dfcd10e commit 47eeaf2

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ jobs:
361361
# option 2 - specify environment name and url
362362
environment:
363363
name: envName
364-
url: someUrl
364+
url: someUrl # optional
365+
deployment: true # optional, default: true. setting to false will not create a deployment object, not compatible with custom deployment protection rules
365366
```
366367
- `envName` can be a string or any expression (except for the `secrets` context)
367368

@@ -622,6 +623,19 @@ jobs:
622623

623624
---
624625

626+
# Expressions
627+
[Documentation - Evaluate expressions in workflows and actions](https://docs.github.com/en/actions/reference/workflows-and-actions/expressions)
628+
629+
### `case` expression
630+
631+
```
632+
case( pred1, val1, pred2, val2, ..., default )
633+
```
634+
635+
- Evaluates predicates in order and returns the value corresponding to the first predicate that evaluates to true. If no predicate matches, it returns the last argument as the default value.
636+
637+
---
638+
625639
# Links
626640
- official github actions: https://github.com/orgs/actions/repositories
627641
- official azure actions: https://github.com/marketplace?query=Azure&type=actions&verification=verified_creator

0 commit comments

Comments
 (0)