{"id":20147701,"url":"https://github.com/surnet/get-json-matrix","last_synced_at":"2025-06-10T20:35:16.852Z","repository":{"id":174966417,"uuid":"653102175","full_name":"Surnet/get-json-matrix","owner":"Surnet","description":"Gets a GitHub Action Matrix array for every item in a JSON","archived":false,"fork":false,"pushed_at":"2025-01-21T23:17:29.000Z","size":937,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T09:41:37.404Z","etag":null,"topics":["actions","github","github-actions","json","matrix"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Surnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-13T12:09:08.000Z","updated_at":"2024-11-01T15:19:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"620fa1f1-4dd8-4ca9-9bab-526c2e6282b3","html_url":"https://github.com/Surnet/get-json-matrix","commit_stats":null,"previous_names":["surnet/get-json-matrix"],"tags_count":16,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surnet%2Fget-json-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surnet%2Fget-json-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surnet%2Fget-json-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surnet%2Fget-json-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Surnet","download_url":"https://codeload.github.com/Surnet/get-json-matrix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surnet%2Fget-json-matrix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259146620,"owners_count":22812279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github","github-actions","json","matrix"],"created_at":"2024-11-13T22:30:43.348Z","updated_at":"2025-06-10T20:35:16.825Z","avatar_url":"https://github.com/Surnet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/Surnet/get-json-matrix/actions/workflows/test.yml/badge.svg)](https://github.com/Surnet/get-json-matrix)\n\n# Surnet/get-json-matrix\n\nThis action gets a GitHub Action Matrix from a JSON.\n\n## Inputs\n\n### `filepath`\n\nThe path to the JSON file (defaults to: ./matrix.json)\n\n## Example usage\n\nThis runs for the file ./matrix.json in our repository and outputs the \n\n```yaml\nname: Run for every X in JSON\n\non:\n  push:\n\njobs:\n  get-matrix:\n    name: Get Matrix from JSON\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n    outputs:\n      matrix: ${{ steps.matrix.outputs.matrix }}\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v3\n\n      - name: Get Matrix\n        id: matrix\n        uses: Surnet/get-json-matrix@v1\n        with:\n          filepath: ./matrix.json\n\n  run-for-everything:\n    name: Run for each Key Value combination in the JSON\n    needs: get-matrix\n    permissions: {}\n    runs-on: ubuntu-latest\n    strategy:\n      matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}\n    steps:\n      - name: Echo matrix\n        run: |\n          echo \"${{ matrix.key }}\"\n          echo \"${{ matrix.value }}\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurnet%2Fget-json-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurnet%2Fget-json-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurnet%2Fget-json-matrix/lists"}