question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Array to use in matrix

See original GitHub issue

Can it be possible to return an array as an input to use in a matrix ?

  build:
    strategy:
      fail-fast: true
      matrix: 
        package: {{steps.filter.outputs}} //This is not working cause is not an array but a map ?
    if: ${{ matrix.package == 'true' }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: dorny/paths-filter@v2
        id: filter
        with:
          base: 'main'
          filters: |
            shared:
              - 'packages/shared/**'
            template:
              - 'packages/template/**'

Im getting a cannot unmarshal !!map into []interface {}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tcaraccommented, Dec 7, 2020

I guess using separate job and some jq magic to get JSON array with names of changed packages does the trick for me.

0reactions
akeemjenkinscommented, Aug 26, 2022

I love this feature! This is very useful in managing terraform apply and plan where each directory maps to an AWS account and you only want to run terraform on changed directories. It also allows for writing the terraform job once with automatic job spawning. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Matrices and Arrays - MATLAB & Simulink - MathWorks
All MATLAB variables are multidimensional arrays, no matter what type of data. A matrix is a two-dimensional array often used for linear algebra....
Read more >
Matrices, Lists, and Arrays in R - Pluralsight
An array is a vector with one or more dimensions. A one-dimensional array can be considered a vector, and an array with two...
Read more >
Array vs Matrix in R Programming - GeeksforGeeks
Arrays can contain greater than or equal to 1 dimensions. Matrices contains 2 dimensions in a table like structure. Array is a homogeneous...
Read more >
Review of Arrays, Vectors and Matrices - Swarthmore College
Review of Arrays, Vectors and Matrices. This page is meant to be a brief review of the notation and elementary operations associated with...
Read more >
Array To Matrix VI - NI - National Instruments
Array To Matrix VI ; To Real Matrix. Real 2D Array specifies a two-dimensional array. ; To Column Vector. Real 1D Array specifies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found