mirror of
https://github.com/diligencia/semantic-branch-version.git
synced 2024-12-27 12:48:01 +08:00
Github action that extracts a version number from the git branch name
0be958e4f8
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.4 to 1.9.1. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) --- updated-dependencies: - dependency-name: "@actions/core" dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github/workflows | ||
node_modules | ||
action.yml | ||
index.js | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md |
semantic-git-version-action
Github action that extracts a version number from the git branch name
ex: releases/release-v1.0.0 -> 1.0.0
Outputs
Output | |
---|---|
VERSION | The full extracted version |
MAJOR_VERSION | Major version extracted from the name. First digit in the version scheme |
MINOR_VERSION | Minor version extracted from the name. Second digit in the version scheme (if present) |
PATCH_VERISON | Patch version extracted from the name. Third digit in the version scheme (if present) |
This plugin only looks at the first 3 digits, rest is ignored.