General improvements

* Fix calculations as per https://github.com/lukaszraczylo/semver-generator/issues/8
* Change name of default config file as per https://github.com/lukaszraczylo/semver-generator/issues/2
* Add access to private repositories as per https://github.com/lukaszraczylo/semver-generator/issues/3
* Update documentation
This commit is contained in:
2021-05-11 20:57:10 +01:00
parent ee2ab9fa0c
commit b8a15788ee
6 changed files with 73 additions and 52 deletions
+14 -3
View File
@@ -7,6 +7,7 @@ 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)
- [Authentication](#authentication)
- [As a binary](#as-a-binary)
- [As a github action](#as-a-github-action)
- [As a docker container](#as-a-docker-container)
@@ -22,6 +23,16 @@ Project created overnight, to prove that management of semantic versioning is NO
### Usage
#### Authentication
If you intend to use this project with remote repositories ( regardless of them being private or public ) you need to authenticate with your repository.
To do so you can utilise the following environment variables ( they are NOT github specific, for other providers you can use the password )
```bash
export GITHUB_USERNAME=lukaszraczylo
export GITHUB_TOKEN=yourPersonalApiToken
```
#### As a binary
You can download latest versions of the binaries from the [release page](https://github.com/lukaszraczylo/semver-generator/releases/latest).
@@ -48,7 +59,7 @@ Available Commands:
help Help about any command
Flags:
-c, --config string Path to config file (default "config.yaml")
-c, --config string Path to config file (default "semver.yaml")
-d, --debug Enable debug mode
-h, --help help for semver-gen
-l, --local Use local repository
@@ -72,9 +83,9 @@ jobs:
fetch-depth: '0'
- name: Semver run
id: semver
uses: lukaszraczylo/semver-generator@1.0.44
uses: lukaszraczylo/semver-generator@PLACE_LATEST_TAG_HERE
with:
config_file: config.yaml
config_file: semver.yaml
# either...
repository_local: true
# or...