{"id":15728411,"url":"https://github.com/kt3k/set-output.ts","last_synced_at":"2026-05-11T03:08:02.487Z","repository":{"id":66262128,"uuid":"230198978","full_name":"kt3k/set-output.ts","owner":"kt3k","description":"A utility for setting the output of a step of GitHub Action","archived":false,"fork":false,"pushed_at":"2020-01-12T07:13:15.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-06T07:14:21.497Z","etag":null,"topics":["deno","github-actions"],"latest_commit_sha":null,"homepage":"https://git.io/set-output.ts","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/kt3k.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-26T05:13:11.000Z","updated_at":"2020-01-30T01:59:36.000Z","dependencies_parsed_at":"2023-02-23T09:31:29.216Z","dependency_job_id":null,"html_url":"https://github.com/kt3k/set-output.ts","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"790724e6294b25c20407b9591c763010f677f7ba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fset-output.ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fset-output.ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fset-output.ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fset-output.ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kt3k","download_url":"https://codeload.github.com/kt3k/set-output.ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246403916,"owners_count":20771530,"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":["deno","github-actions"],"created_at":"2024-10-03T23:03:09.751Z","updated_at":"2026-05-11T03:07:57.458Z","avatar_url":"https://github.com/kt3k.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# set-output.ts\n\n\u003cimg src=\"https://github.com/kt3k/set-output.ts/workflows/Test/badge.svg\" /\u003e\n\n\u003e A utility for setting the output of a step of GitHub Action\n\n# Usage\n\nYou can set the output of a step of GitHub Action by the following command.\n\n```\ncat YOUR_OUTPUT | deno https://git.io/set-output.ts\n```\n\nhttps://git.io/set-output.ts reads the stdin and outputs the directive for setting the output for a step of GitHub Action.\n\nFor example, you can see the example output like the below:\n\n```\necho hello world | deno https://git.io/set-output.ts\n```\n\nThis outputs `::set-output name=value::hello world`. If your output has linebreaks, this script escapes it appropriately.\n\n# Example\n\nHere's an example set up of GitHub Action.\n\n```yml\nsteps:\n  - uses: actions/checkout@master\n  - uses: denolib/setup-deno@v1.1.0\n  - run: \u003cyour command\u003e | deno https://git.io/set-output.ts\n    id: mystep\n  - run: echo ${{ steps.mystep.output.myparam }}\n```\n\nIn the above example, the output of `\u003cyour command\u003e` is stored in `steps.mystep.output.value` and you can use it in later steps.\n\n## CLI Detail\n\nYou can see the help message with the command `deno https://git.io/set-output.ts -h`.\n\n```\nUsage: https://git.io/set-output.ts [-h, --help] [--name \u003cname\u003e]\n\nOptions:\n  -h, --help       Show the help message and exit.\n  --name \u003cname\u003e    Specify the name of the output. Default is \"value\".\n\nExample:\n  \u003cyour command\u003e | deno set_output --name myparam\n\n  This sets the output of your command to the output of the step in GitHub Actions.\n```\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fset-output.ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkt3k%2Fset-output.ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fset-output.ts/lists"}