https://github.com/robertpeteuil/inc-semver-action
increment semver
https://github.com/robertpeteuil/inc-semver-action
Last synced: 6 months ago
JSON representation
increment semver
- Host: GitHub
- URL: https://github.com/robertpeteuil/inc-semver-action
- Owner: robertpeteuil
- Created: 2022-10-29T00:55:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-29T00:56:01.000Z (almost 3 years ago)
- Last Synced: 2025-02-07T13:56:14.717Z (8 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple-semver
A github action to increment a semver string consisting of MAJOR, MINOR and PATCH numbers.
## Usage
```yaml
- name: Simple Semver
id: semver
uses: matt-FFFFFF/simple-semver@v0.1.0
with:
semver-input: '1.2.34'
increment: p- name: Use new semver
run: echo ${{ steps.semver.outputs.semver }}
```## Input `semver-input`
Three element string with MAJOR, MINOR and PATCH numbers, seperated by dots `.`
## Input `increment`
Must be one of the following:
* `m` - increment MAJOR version number and zero all to the right
* `i` - increment MINOR version number and zero all to the right
* `p` - increment PATCH version number## Output `semver`
Contains the new semver string