https://github.com/jsok/svu-version-bump-action
GitHub Action to calculate next version using svu.
https://github.com/jsok/svu-version-bump-action
Last synced: about 1 year ago
JSON representation
GitHub Action to calculate next version using svu.
- Host: GitHub
- URL: https://github.com/jsok/svu-version-bump-action
- Owner: jsok
- License: apache-2.0
- Created: 2021-08-05T01:04:33.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-03T22:14:11.000Z (over 4 years ago)
- Last Synced: 2025-02-20T07:05:48.424Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svu (Semantic Version Util) action
GitHub Action to calculate next version using [svu](https://github.com/caarlos0/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
```yaml
uses: jsok/svu-version-bump-action@v2
with:
bump: 'next'
```
### Custom pattern and prefix
```yaml
uses: jsok/svu-version-bump-action@v2
with:
bump: 'next'
pattern: 'foo/*'
prefix: 'foo/v'
```
## Upgrading from `v1`
See [`v2.0.0` release notes](https://github.com/jsok/svu-version-bump-action/releases/tag/v2.0.0)