Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 month 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-03T22:14:11.000Z (about 3 years ago)
- Last Synced: 2024-11-17T09:02:32.005Z (about 2 months 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)