{"id":20981455,"url":"https://github.com/nobe4/test-action-matrix","last_synced_at":"2026-02-08T12:35:03.768Z","repository":{"id":75249030,"uuid":"457343512","full_name":"nobe4/test-action-matrix","owner":"nobe4","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-09T13:01:04.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T20:57:28.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nobe4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-09T12:11:11.000Z","updated_at":"2022-02-09T13:01:22.000Z","dependencies_parsed_at":"2023-06-05T20:45:28.000Z","dependency_job_id":null,"html_url":"https://github.com/nobe4/test-action-matrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nobe4/test-action-matrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobe4%2Ftest-action-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobe4%2Ftest-action-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobe4%2Ftest-action-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobe4%2Ftest-action-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nobe4","download_url":"https://codeload.github.com/nobe4/test-action-matrix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobe4%2Ftest-action-matrix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268867089,"owners_count":24320285,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-19T05:37:50.508Z","updated_at":"2026-02-08T12:35:03.762Z","avatar_url":"https://github.com/nobe4.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-action-matrix\n\nPOC to use different strategies for filling `strategy:matrix`.\n\n## Notes about `json`.\n\nIt works in 2 steps:\n\n1. [setup](https://github.com/nobe4/test-action-matrix/blob/master/.github/workflows/test.yml#L7-L17)\n\n   Loads a matrix from [`matrix.json`](matrix.json) and set it as one of its output.\n    \n2. [run](https://github.com/nobe4/test-action-matrix/blob/master/.github/workflows/test.yml#L19-L25)\n\n   Runs after `setup` is done and use `fromJson()` to parse `setup`'s output into a mapping, which then gets used for the runs.\n\n**Result**:\n\n![image](https://user-images.githubusercontent.com/2452791/153205223-478b6de3-b58f-42d5-9692-21887988b32b.png)\n\n**Note**: The JSON has to be minified before the `echo \"::set-output name=matrix::...\"`. Here I've minified [`matrix.json`](matrix.json) but it's also possible to do it in the action like so:\n\n```yaml\nrun: |\n    content=`cat ./matrix.json`\n    content=\"${content//'%'/'%25'}\"\n    content=\"${content//$'\\n'/'%0A'}\"\n    content=\"${content//$'\\r'/'%0D'}\"\n    echo \"::set-output name=matrix::$content\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobe4%2Ftest-action-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnobe4%2Ftest-action-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobe4%2Ftest-action-matrix/lists"}