Skip to content

Commit dfcd10e

Browse files
authored
Add 'case' expression documentation to README
Added documentation for 'case' expression in workflows.
1 parent 91bf8f1 commit dfcd10e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,19 @@ jobs:
623623

624624
---
625625

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+
626639
# Links
627640
- official github actions: https://github.com/orgs/actions/repositories
628641
- official azure actions: https://github.com/marketplace?query=Azure&type=actions&verification=verified_creator

0 commit comments

Comments
 (0)