Last touches before publishing github action.

This commit is contained in:
2021-05-09 13:00:10 +01:00
parent 79545e4331
commit 129fbeebdf
3 changed files with 36 additions and 7 deletions
+25
View File
@@ -5,6 +5,8 @@ Project created overnight, to prove that management of semantic versioning is NO
- [Semantic version generator](#semantic-version-generator)
- [How does it work](#how-does-it-work)
- [Usage](#usage)
- [As a binary](#as-a-binary)
- [As a github action](#as-a-github-action)
- [Calculations example](#calculations-example)
- [Example configuration](#example-configuration)
- [Good to know](#good-to-know)
@@ -17,6 +19,8 @@ Project created overnight, to prove that management of semantic versioning is NO
### Usage
#### As a binary
```bash
bash$ ./semver-gen generate -r https://github.com/nextapps-de/winbox
SEMVER 9.0.10
@@ -42,6 +46,27 @@ Flags:
-r, --repository string Remote repository URL. (default "https://github.com/lukaszraczylo/simple-gql-client")
```
#### As a github action
```yaml
jobs:
obain-semver:
runs-on: ubuntu-latest
name: Generate semver
outputs:
RELEASE_VERSION: ${{ steps.semver.outputs.SEMVER }}
steps:
- name: Run
uses: lukaszraczylo/semver-generator
id: semver
with:
config_file: config.yaml
# then...
repository_url: https://github.com/lukaszraczylo/simple-gql-client
# or...
repository_local: true
```
#### Calculations example
* 0.0.1 - PATCH - starting commit