Array to use in matrix
See original GitHub issueCan 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:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I guess using separate job and some jq magic to get JSON array with names of changed packages does the trick for me.
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!