{"id":50194666,"url":"https://github.com/benlei/yaml2outputs","last_synced_at":"2026-05-25T16:35:10.772Z","repository":{"id":358586654,"uuid":"861394980","full_name":"benlei/yaml2outputs","owner":"benlei","description":" This action will read in a YAML body / file and set them as outputs ","archived":false,"fork":false,"pushed_at":"2026-05-18T03:34:40.000Z","size":773,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-18T05:40:03.989Z","etag":null,"topics":["github-actions","workflows","yaml"],"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/benlei.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-22T19:18:09.000Z","updated_at":"2026-05-18T03:34:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/benlei/yaml2outputs","commit_stats":null,"previous_names":["benlei/yaml2outputs"],"tags_count":11,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/benlei/yaml2outputs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fyaml2outputs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fyaml2outputs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fyaml2outputs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fyaml2outputs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benlei","download_url":"https://codeload.github.com/benlei/yaml2outputs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benlei%2Fyaml2outputs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33484318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["github-actions","workflows","yaml"],"created_at":"2026-05-25T16:35:10.072Z","updated_at":"2026-05-25T16:35:10.758Z","avatar_url":"https://github.com/benlei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# benlei/yaml2outputs\n\n![CI](https://github.com/benlei/yaml2outputs/actions/workflows/ci.yml/badge.svg)\n[![Check dist/](https://github.com/benlei/yaml2outputs/actions/workflows/check-dist.yml/badge.svg)](https://github.com/benlei/yaml2outputs/actions/workflows/check-dist.yml)\n[![CodeQL](https://github.com/benlei/yaml2outputs/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/benlei/yaml2outputs/actions/workflows/codeql-analysis.yml)\n[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)\n\nReads in a `yaml` input (or `file` input) and tries to output its values in dot\nnotation. Note that if the YAML/file is a primitive/missing/has errors, nothing\nwill be output.\n\nFor example given the YAML:\n\n```yaml\nfoo:\n  bar:\n    - 1\n    - 2\n    - 3\nhello:\n  world: abc\n  example.com/foobar: bye\n  'yes': true\n  'no': false\n```\n\nShould output the following:\n\n- `steps.my-id.outputs['foo.bar[0]'] = '1'`\n- `steps.my-id.outputs['foo.bar[1]'] = '2'`\n- `steps.my-id.outputs['foo.bar[2]'] = '3'`\n- `steps.my-id.outputs['hello.world'] = 'abc'`\n- `steps.my-id.outputs['hello[\"example.com/foobar\"]'] = 'bye'`\n- `steps.my-id.outputs['hello.yes'] = 'true'`\n- `steps.my-id.outputs['hello.no'] = 'false'`\n\n## Inputs\n\n\u003c!-- markdownlint-disable MD013 --\u003e\n\n| Input Name | Required | Default | Description                                                      |\n| ---------- | -------- | ------- | ---------------------------------------------------------------- |\n| `yaml`     | no       | `''`    | The YAML body (string) to parse                                  |\n| `file`     | no       | `''`    | The YAML file to parse. Ignored if `yaml` has a non-empty value. |\n\n\u003c!-- markdownlint-enable MD013 --\u003e\n\n## Outputs\n\nVaries depending on inputs.\n\n## Example\n\n### Passing in a raw YAML body\n\n```yaml\n- name: Test\n  id: yaml\n  uses: benlei/yaml2outputs@v1\n  with:\n    yaml: |\n      foo:\n        bar:\n          - 1\n          - 2\n          - 3\n      hello:\n        world: abc\n        example.com/foobar: bye\n        'yes': true\n        'no': false\n\n- name: Output value:\n  run: |\n    echo ${{ steps.yaml.outputs['hello[\"example.com/foobar\"]'] }}\n```\n\n### Passing in a YAML file\n\n```yaml\n- name: Test\n  id: yaml\n  uses: benlei/yaml2outputs@v1\n  with:\n    file: ./some.yaml\n\n- name: Output value:\n  run: |\n    echo ${{ steps.yaml.outputs['hello[\"example.com/foobar\"]'] }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenlei%2Fyaml2outputs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenlei%2Fyaml2outputs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenlei%2Fyaml2outputs/lists"}