{"id":19032720,"url":"https://github.com/joutvhu/create-release","last_synced_at":"2025-04-23T16:41:17.044Z","repository":{"id":118392744,"uuid":"597342138","full_name":"joutvhu/create-release","owner":"joutvhu","description":"GitHub Action to create release.","archived":false,"fork":false,"pushed_at":"2024-06-03T11:25:22.000Z","size":1381,"stargazers_count":4,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T02:45:08.547Z","etag":null,"topics":["actions","create","github","github-actions","release","update"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/joutvhu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-02-04T08:39:20.000Z","updated_at":"2024-02-12T18:00:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4e1901c-1cc1-48b2-9a84-d15fbce9c011","html_url":"https://github.com/joutvhu/create-release","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fcreate-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fcreate-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fcreate-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fcreate-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joutvhu","download_url":"https://codeload.github.com/joutvhu/create-release/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250472029,"owners_count":21436067,"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","create","github","github-actions","release","update"],"created_at":"2024-11-08T21:30:44.702Z","updated_at":"2025-04-23T16:41:17.025Z","avatar_url":"https://github.com/joutvhu.png","language":"JavaScript","readme":"# Create Release\n\nGitHub Action to create release.\n\n## Usage\n\nSee [action.yml](action.yml)\n\n### Inputs\n\nFor more information on these inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input)\n\n- `owner`: The name of the owner of the repo. Used to identify the owner of the repository.  Used when cutting releases for external repositories.  Default: Current owner\n- `repo`: The name of the repository. Used to identify the repository on which to release.  Used when cutting releases for external repositories. Default: Current repository\n- `tag_name`: The name of the tag for this release\n- `name`: The name of the release\n- `body`: Text describing the contents of the release. Optional, and not needed if using `body_path`.\n- `body_path`: A file with contents describing the release. Optional, and not needed if using `body`.\n- `draft`: `true` to create a draft (unpublished) release, `false` to create a published one. Default: `false`\n- `prerelease`: `true` to identify the release as a prerelease. `false` to identify the release as a full release. Default: `false`\n- `target_commitish` : Any branch or commit SHA the Git tag is created from, unused if the Git tag already exists. Default: SHA of current commit\n- `discussion_category_name`: When provided this will generate a discussion of the specified category. The category must exist otherwise this will cause the action to fail. This isn't used with draft releases.\n- `generate_release_notes`: Indicates if release notes should be automatically generated.\n- `on_release_exists`: Indicate what to do if a release already exists. Options: `skip`, `update`, `update_only_unreleased`, `update_only_unreleased_or_skip`, `error`. Default `skip`.\n- `remove_assets`: Indicates if existing release artifacts should be removed.\n\nThe `body_path` is valuable for dynamically creating a `.md` within code commits and even within the Github Action steps leading up to the `create-release`.\n\n### Outputs\n\nFor more information on these outputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#response-4) for an example of what these outputs look like\n\n- `id`: The release ID\n- `html_url`: The URL users can navigate to in order to view the release. i.e. `https://github.com/octocat/Hello-World/releases/v1.0.0`\n- `upload_url`: The URL for uploading assets to the release, which could be used by GitHub Actions for additional uses, for example the [`@actions/upload-release-asset`](https://www.github.com/actions/upload-release-asset) GitHub Action\n- `tag_name`: The git tag associated with the release. ex: `v1.1.0`\n- `prerelease`: Whether the release is a pre-release\n\n### Example\n\n```yaml\npermissions:\n  contents: write\nsteps:\n  - name: Create Release\n    id: create_release\n    uses: joutvhu/create-release@v1\n    with:\n      tag_name: v1.0.0\n      name: Release v1.0.0\n      body: |\n        Changes in this Release\n        - First Change\n        - Second Change\n      draft: false\n      prerelease: false\n    env:\n      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nThis will create a [Release](https://help.github.com/en/articles/creating-releases), as well as a [release event](https://developer.github.com/v3/activity/events/types/#releaseevent), which could be handled by a third party service, or by GitHub Actions for additional uses, for example the [`@actions/upload-release-asset`](https://www.github.com/actions/upload-release-asset) GitHub Action.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fcreate-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoutvhu%2Fcreate-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fcreate-release/lists"}