jsok / svu-version-bump-action

GitHub Action to calculate next version using svu.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svu (Semantic Version Util) action

GitHub Action to calculate next version using svu.

Inputs

bump

What kind of version bump to perform. Defaults to next, but also supports: major, minor or patch.

pattern

Optional: Invokes svu --pattern's behaviour, default to *.

prefix

Optional: Invokes svu --prefix's behaviour, defaults to v.

Outputs

version

The next calculated version number.

###version-without-prefix

The next calculated version number without the prefix.

Usage

Example usage

uses: jsok/svu-version-bump-action@v2
with:
  bump: 'next'

Custom pattern and prefix

uses: jsok/svu-version-bump-action@v2
with:
  bump: 'next'
  pattern: 'foo/*'
  prefix: 'foo/v'

Upgrading from v1

See v2.0.0 release notes

About

GitHub Action to calculate next version using svu.

License:Apache License 2.0


Languages

Language:Shell 85.6%Language:Dockerfile 14.4%