skgandikota/Matrix Generator
Dynamically generate a matrix JSON for GitHub Actions matrix strategy from inputs, files, or JSON arrays.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| values | Comma-separated values OR a JSON array (e.g. "a,b,c" or "[\"a\",\"b\",\"c\"]"). | no | "" |
| json | Raw JSON array of objects for complex matrices (e.g. [{"os":"ubuntu","node":"18"},{"os":"macos","node":"20"}]). | no | "" |
| file | Path to a JSON file containing the matrix array. | no | "" |
| name | Matrix variable name when using "values" input (used as the key in output JSON). | no | value |
| filter | JSONPath-style filter to exclude items (e.g. "os!=windows" or "node>=18"). | no | "" |
| include | JSON array of additional combinations to include. | no | [] |
| exclude | JSON array of combinations to exclude. | no | [] |
Outputs
| name | description |
|---|---|
| matrix | The generated matrix JSON object, ready for fromJSON() in matrix strategy. |
| length | Number of matrix combinations. |
| is_empty | Whether the matrix has zero combinations (true/false). |