Skip to content

jakob-lilliemarck/action-switch-matrix

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Switch matrix

Run heterogeneous commands in a GitHub workflow job matrix.

name: Switch matrix example

on: [push]

jobs:
 main:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        key: [foo, bar, baz]
    steps:   
      - uses: jakob-lilliemarck/action-switch-matrix@v1
        with:
          key: ${{matrix.key}}
          instruction: |
            key=foo,cmd=echo ${{matrix.key}}
            key=bar,cmd=echo BAR
            key=default,cmd=echo DEFAULT

About

Run docker commands conditionally in a workflow matrix

Resources

License

Stars

Watchers

Forks

Packages

No packages published