https://github.com/xo-energy/action-get-or-create-release
GitHub action that creates or updates a GitHub release
https://github.com/xo-energy/action-get-or-create-release
github github-actions
Last synced: 7 months ago
JSON representation
GitHub action that creates or updates a GitHub release
- Host: GitHub
- URL: https://github.com/xo-energy/action-get-or-create-release
- Owner: xo-energy
- License: isc
- Created: 2020-04-15T21:48:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T17:36:29.000Z (about 2 years ago)
- Last Synced: 2025-10-03T06:02:14.981Z (10 months ago)
- Topics: github, github-actions
- Language: JavaScript
- Size: 1000 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action - Get or Create Release
This GitHub Action (written in JavaScript) gets an existing GitHub release or creates a new one, optionally uploads asset attachments to the release, and optionally publishes the release.
## Usage
### Inputs
- `assets`: File glob expression(s) of assets to attach to the release.
- `body`: Text describing the contents of the release. Default to "TBA" when creating a new release.
- `github_token`: GitHub personal access token. Defaults to the token provided by the workflow run.
- `prerelease`: `true` to identity the release as a prerelease
- `previous_release_sha`: Commit SHA of the previous release. If provided, release notes will be generated by querying commit history.
- `publish`: `true` to publish the release, `false` to leave as a draft. Defaults to `true`.
- `release_name`: Name of the release. Defaults to `tag_name`.
- `tag_name`: Tag from which to create the release.
- `target_commitish`: Specifies where the tag is created from. Defaults to `GITHUB_SHA`.
### Outputs
- `release_id`: The ID of the GitHub release.
- `upload_url`: The URL for uploading assets to the release.