justanotherdev/Switch Action

Allow switch/case logic

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Nov 2, 2020
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: justanotherdev/switch-action@f87acc1db720ca8ee3b0b7f60f15e555e97cc490 # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
expressionThe expression to evaluate.yes
case_aThe first case to handle.yes
case_bThe second case to handle.no
case_cThe third case to handle.no
case_dThe fourth case to handle.no
case_eThe fifth case to handle.no
case_fThe sixth case to handle.no
case_gThe seventh case to handle.no
case_hThe eighth case to handle.no
case_iThe ninth case to handle.no
case_jThe tenth case to handle.no
case_kThe eleventh case to handle.no
case_lThe twelfth case to handle.no
case_mThe thirteenth case to handle.no
case_nThe fourteenth case to handle.no
case_oThe fifteenth case to handle.no
case_pThe sixteenth case to handle.no
case_qThe seventeenth case to handle.no
case_rThe eighteenth case to handle.no
case_sThe nineteenth case to handle.no
case_tThe twentieth case to handle.no
case_uThe twenty-first case to handle.no
case_vThe twenty-second case to handle.no
case_wThe twenty-third case to handle.no
case_xThe twenty-fourth case to handle.no
case_yThe second-fifth case to handle.no
case_zThe twenty-sixth case to handle.no
statement_aThe first statement to handle.yes
statement_bThe second statement to handle.no
statement_cThe third statement to handle.no
statement_dThe fourth statement to handle.no
statement_eThe fifth statement to handle.no
statement_fThe sixth statement to handle.no
statement_gThe seventh statement to handle.no
statement_hThe eighth statement to handle.no
statement_iThe ninth statement to handle.no
statement_jThe tenth statement to handle.no
statement_kThe eleventh statement to handle.no
statement_lThe twelfth statement to handle.no
statement_mThe thirteenth statement to handle.no
statement_nThe fourteenth statement to handle.no
statement_oThe fifteenth statement to handle.no
statement_pThe sixteenth statement to handle.no
statement_qThe seventeenth statement to handle.no
statement_rThe eighteenth statement to handle.no
statement_sThe nineteenth statement to handle.no
statement_tThe twentieth statement to handle.no
statement_uThe twenty-first statement to handle.no
statement_vThe twenty-second statement to handle.no
statement_wThe twenty-third statement to handle.no
statement_xThe twenty-fourth statement to handle.no
statement_yThe second-fifth statement to handle.no
statement_zThe twenty-sixth statement to handle.no
defaultThe statement to use when a matching case is not found.no
namedescription
valueThe matching statement.