willabides/release-train

Release every PR merge. No magic commit message required.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
repoGitHub repository in the form of owner/repo.${{ github.repository }}
check-prOperates as if the given PR has already been merged. Useful for making sure the PR is properly labeled. Skips tag and release.${{ github.event.number }}
labelsPR label alias in the form of "<alias>=<label>" where <label> is a canonical label. Accepts multiple values. One value per line.
checkout-dirThe directory where the repository is checked out.${{ github.workspace }}
refgit ref.HEAD
github-tokenThe GitHub token to use for authentication. Must have `contents: write` permission if creating a release or tag.${{ github.token }}
create-tagWhether to create a tag for the release. Only literal 'true' will be treated as true.
create-releaseWhether to create a release. Implies create-tag. Only literal 'true' will be treated as true.
force-prereleaseForce prerelease even if no prerelease PRs are present. Only literal 'true' will be treated as true.
force-stableForce stable release even if no stable PRs are present. Only literal 'true' will be treated as true.
draftLeave the release as a draft. Only literal 'true' will be treated as true.
tag-prefixThe prefix to use for the tag.v
v0Assert that current major version is 0 and treat breaking changes as minor changes. Errors if the major version is not 0. Only literal 'true' will be treated as true.
initial-release-tagThe tag to use if no previous version can be found. Set to "" to cause an error instead.v0.0.0
make-latestMark the release as "latest" on GitHub. Can be set to "true", "false" or "legacy". See https://docs.github.com/en/rest/releases/releases#update-a-release for details.legacy
pre-tag-hookCommand to run before tagging the release. You may abort the release by exiting with a non-zero exit code. Exit code 0 will continue the release. Exit code 10 will skip the release without error. Any other exit code will abort the release with an error. Environment variables available to the hook: RELEASE_VERSION The semantic version being released (e.g. 1.2.3). RELEASE_TAG The tag being created (e.g. v1.2.3). PREVIOUS_VERSION The previous semantic version (e.g. 1.2.2). Empty on first release. PREVIOUS_REF The git ref of the previous release (e.g. v1.2.2). Empty on first release. PREVIOUS_STABLE_VERSION The previous stable semantic version (e.g. 1.2.2). Empty if there hasn't been a stable version yet. A stable version is one without prerelease identifiers. PREVIOUS_STABLE_REF The git ref of the previous stable release (e.g. v1.2.2). Empty if there hasn't been a stable version yet. A stable version is one without prerelease identifiers. FIRST_RELEASE Whether this is the first release. Either "true" or "false". GITHUB_TOKEN The GitHub token that was provided to release-train. RELEASE_NOTES_FILE A file path where you can write custom release notes. When nothing is written to this file, release-train will use GitHub's default release notes. RELEASE_TARGET A file path where you can write an alternate git ref to release instead of HEAD. ASSETS_DIR A directory where you can write release assets. All files in this directory will be uploaded as release assets. In addition to the above environment variables, all variables from release-train's environment are available to the hook. When the hook creates a tag named $RELEASE_TAG, it will be used as the release target instead of either HEAD or the value written to $RELEASE_TARGET.
pre-release-hook*deprecated* Will be removed in a future release. Alias for pre-tag-hook.
release-refsOnly allow tags and releases to be created from matching refs. Refs can be patterns accepted by git-show-ref. If undefined, any branch can be used. Accepts multiple values. One value per line.
tempdirThe prefix to use with mktemp to create a temporary directory.
debugEnable debug logging. Only literal 'true' will be treated as true.
release-train-binPath to release-train binary. Only needed if you're using a custom release-train binary.
namedescription
previous-refA git ref pointing to the previous release, or the current ref if no previous release can be found.
previous-versionThe previous version on the release branch.
first-releaseWhether this is the first release on the release branch. Either "true" or "false".
release-versionThe version of the new release. Empty if no release is called for.
release-tagThe tag of the new release. Empty if no release is called for.
change-levelThe level of change in the release. Either "major", "minor", "patch" or "none".
created-tagWhether a tag was created. Either "true" or "false".
created-releaseWhether a release was created. Either "true" or "false".
pre-release-hook-output*deprecated* Will be removed in a future release. Alias for pre-tag-hook-output
pre-release-hook-aborted*deprecated* Will be removed in a future release. Alias for pre-tag-hook-aborted
pre-tag-hook-outputThe stdout of the pre-tag-hook. Empty if pre_release_hook is not set or if the hook returned an exit other than 0 or 10.
pre-tag-hook-abortedWhether pre-tag-hook issued an abort by exiting 10. Either "true" or "false".