Skip to content

GitHub Action to check whether the commit which is currently built is a release commit

License

Notifications You must be signed in to change notification settings

NiverEngineering/is-release-commit-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

GitHub Action to check whether the commit which is currently built is a release commit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •