7rikazhexde/JSON to Variables Setter
Parse JSON file and set GitHub Actions outputs
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 10, 2026
- License
- MIT
Pinned Snippet
uses: 7rikazhexde/json2vars-setter@276833ee67cf42943cf599d2b29f775f4d33694f # v1.13.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| json-file | Path to the JSON file | yes | .github/json2vars-setter/matrix.json |
| update-matrix | Whether to dynamically update the matrix before parsing | no | false |
| update-strategy | Default update strategy for all languages (stable, latest, or both) | no | — |
| python-strategy | Update strategy for Python versions (stable, latest, or both) | no | — |
| nodejs-strategy | Update strategy for Node.js versions (stable, latest, or both) | no | — |
| ruby-strategy | Update strategy for Ruby versions (stable, latest, or both) | no | — |
| go-strategy | Update strategy for Go versions (stable, latest, or both) | no | — |
| rust-strategy | Update strategy for Rust versions (stable, latest, or both) | no | — |
| php-strategy | Update strategy for PHP versions (stable, latest, or both) | no | — |
| dotnet-strategy | Update strategy for .NET (C#) versions (stable, latest, or both) | no | — |
| java-strategy | Update strategy for Java versions (stable, latest, or both) | no | — |
| deno-strategy | Update strategy for Deno versions (stable, latest, or both) | no | — |
| bun-strategy | Update strategy for Bun versions (stable, latest, or both) | no | — |
| zig-strategy | Update strategy for Zig versions (stable, latest, or both) | no | — |
| elixir-strategy | Update strategy for Elixir versions (stable, latest, or both) | no | — |
| dart-strategy | Update strategy for Dart versions (stable, latest, or both) | no | — |
| swift-strategy | Update strategy for Swift versions (stable, latest, or both) | no | — |
| julia-strategy | Update strategy for Julia versions (stable, latest, or both) | no | — |
| crystal-strategy | Update strategy for Crystal versions (stable, latest, or both) | no | — |
| haskell-strategy | Update strategy for Haskell (GHC) versions (stable, latest, or both) | no | — |
| ocaml-strategy | Update strategy for OCaml versions (stable, latest, or both) | no | — |
| kotlin-strategy | Update strategy for Kotlin versions (stable, latest, or both) | no | — |
| clang-strategy | Update strategy for Clang/LLVM versions (stable, latest, or both) | no | — |
| gcc-strategy | Update strategy for GCC versions (stable, latest, or both) | no | — |
| flutter-strategy | Update strategy for Flutter versions (stable, latest, or both) | no | — |
| dry-run | Run in dry-run mode without updating the JSON file | no | false |
| use-cache | Whether to use cached version information | no | false |
| cache-languages | Languages to include in cache operations (comma-separated) | no | all |
| force-cache-update | Force cache update even if it is fresh | no | false |
| cache-max-age | Maximum age of cache in days before update | no | 1 |
| cache-count | Number of versions to fetch per language | no | 10 |
| output-count | Number of versions to include in output template. This allows you to cache many versions but limit how many appear in the final matrix.json. When not specified, defaults to using the same value as cache-count. | no | 0 |
| cache-incremental | Add only new versions without replacing existing cache | no | false |
| cache-file | Custom cache file path | no | .github/json2vars-setter/cache/version_cache.json |
| template-only | Only generate template from existing cache (no API calls) | no | false |
| cache-only | Only update the cache, do not generate the template | no | false |
| keep-existing | Maintain existing version information when generating template | no | true |
| sort-order | Version sort order (desc: newest first, asc: oldest first) | no | desc |
Outputs
| name | description |
|---|---|
| os | List of operating systems |
| versions_python | List of Python versions |
| versions_ruby | List of Ruby versions |
| versions_nodejs | List of Node.js versions |
| versions_go | List of Golang versions |
| versions_rust | List of Rust versions |
| versions_php | List of PHP versions |
| versions_dotnet | List of .NET (C#) versions |
| versions_java | List of Java versions |
| versions_deno | List of Deno versions |
| versions_bun | List of Bun versions |
| versions_zig | List of Zig versions |
| versions_elixir | List of Elixir versions |
| versions_dart | List of Dart versions |
| versions_swift | List of Swift versions |
| versions_julia | List of Julia versions |
| versions_crystal | List of Crystal versions |
| versions_haskell | List of Haskell (GHC) versions |
| versions_ocaml | List of OCaml versions |
| versions_kotlin | List of Kotlin versions |
| versions_clang | List of Clang/LLVM versions |
| versions_gcc | List of GCC versions |
| versions_flutter | List of Flutter versions |
| ghpages_branch | GitHub Pages branch |