Skip to content

Is Release Commit

Actions
Check whether the commit which is currently built is a release commit
v1.4.0
Latest
Star (2)

Is Release Commit Action

Checks whether the current commit is a release commit.

Inputs

release-tag-prefix

A glob prefix to filter tag names. Set to * if all tags shall be taken into account.
Default: v*

fallback-tag

The fallback if no release tag could have been found.
Default: 0.0.0

Outputs

latest-release-tag

The content of the latest release tag. E.g. "v1.2.3" or the value of fallback-tag if no tag could be found.

is-fallback-tag

Indicates whether the latest-release-tag is the actually found (false) or the fallback tag (true)

is-release-commit

Whether the current commit is a release commit ("true") or not ("false")

version

The actual version extracted from the git tag ("v1.2.3" -> "1.2.3")

major-version

The major part of the version extracted from the git tag ("v1.2.3" -> "1")

minor-version

The minor part of the version extracted from the git tag ("v1.2.3" -> "2")

bugfix-version

The minor part of the version extracted from the git tag ("v1.2.3" -> "3")

next-semantic-version

If is-release-commit is "false", the next semantic version based on the commits since the last release is returned. Otherwise, the currently built version is returned.

current-commit-sha

The short SHA of the current commit, i.e. "d09e6f6"

Example usage

- uses: NiverEngineering/is-release-commit-action@v1
  id: is-release-commit

Is Release Commit is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Check whether the commit which is currently built is a release commit
v1.4.0
Latest

Is Release Commit is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.