justanotherdev/Switch Action
Allow switch/case logic
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Nov 2, 2020
- License
- None
Pinned Snippet
uses: justanotherdev/switch-action@f87acc1db720ca8ee3b0b7f60f15e555e97cc490 # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| expression | The expression to evaluate. | yes | — |
| case_a | The first case to handle. | yes | — |
| case_b | The second case to handle. | no | — |
| case_c | The third case to handle. | no | — |
| case_d | The fourth case to handle. | no | — |
| case_e | The fifth case to handle. | no | — |
| case_f | The sixth case to handle. | no | — |
| case_g | The seventh case to handle. | no | — |
| case_h | The eighth case to handle. | no | — |
| case_i | The ninth case to handle. | no | — |
| case_j | The tenth case to handle. | no | — |
| case_k | The eleventh case to handle. | no | — |
| case_l | The twelfth case to handle. | no | — |
| case_m | The thirteenth case to handle. | no | — |
| case_n | The fourteenth case to handle. | no | — |
| case_o | The fifteenth case to handle. | no | — |
| case_p | The sixteenth case to handle. | no | — |
| case_q | The seventeenth case to handle. | no | — |
| case_r | The eighteenth case to handle. | no | — |
| case_s | The nineteenth case to handle. | no | — |
| case_t | The twentieth case to handle. | no | — |
| case_u | The twenty-first case to handle. | no | — |
| case_v | The twenty-second case to handle. | no | — |
| case_w | The twenty-third case to handle. | no | — |
| case_x | The twenty-fourth case to handle. | no | — |
| case_y | The second-fifth case to handle. | no | — |
| case_z | The twenty-sixth case to handle. | no | — |
| statement_a | The first statement to handle. | yes | — |
| statement_b | The second statement to handle. | no | — |
| statement_c | The third statement to handle. | no | — |
| statement_d | The fourth statement to handle. | no | — |
| statement_e | The fifth statement to handle. | no | — |
| statement_f | The sixth statement to handle. | no | — |
| statement_g | The seventh statement to handle. | no | — |
| statement_h | The eighth statement to handle. | no | — |
| statement_i | The ninth statement to handle. | no | — |
| statement_j | The tenth statement to handle. | no | — |
| statement_k | The eleventh statement to handle. | no | — |
| statement_l | The twelfth statement to handle. | no | — |
| statement_m | The thirteenth statement to handle. | no | — |
| statement_n | The fourteenth statement to handle. | no | — |
| statement_o | The fifteenth statement to handle. | no | — |
| statement_p | The sixteenth statement to handle. | no | — |
| statement_q | The seventeenth statement to handle. | no | — |
| statement_r | The eighteenth statement to handle. | no | — |
| statement_s | The nineteenth statement to handle. | no | — |
| statement_t | The twentieth statement to handle. | no | — |
| statement_u | The twenty-first statement to handle. | no | — |
| statement_v | The twenty-second statement to handle. | no | — |
| statement_w | The twenty-third statement to handle. | no | — |
| statement_x | The twenty-fourth statement to handle. | no | — |
| statement_y | The second-fifth statement to handle. | no | — |
| statement_z | The twenty-sixth statement to handle. | no | — |
| default | The statement to use when a matching case is not found. | no | — |
Outputs
| name | description |
|---|---|
| value | The matching statement. |