Skip to content

Using a matrix defined input for a custom action #25899

Answered by chrispat
radu-matei asked this question in Actions
Discussion options

You must be logged in to vote

You sould also be able to do something like this

runs-on: ${{ matrix.config.os }}
strategy:
  matrix:
    config:
    - {os: ubuntu-latest, url: "http://linuxurl" }
    - {os: windows-latest, url: "http://windowsurl" }
steps:
  - uses: my-custom-action
    with:
      myInput: ${{ matrix.config.url }}

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants