Add v prefixed version outputs

See: https://github.com/reecetech/version-increment/issues/8
This commit is contained in:
Phil Jay
2021-11-15 06:54:57 +11:00
parent 4988018178
commit 38a48eeef1
3 changed files with 9 additions and 5 deletions

View File

@@ -9,7 +9,7 @@
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Get next version - name: Get next version
uses: reecetech/version-increment@2021.11.1 uses: reecetech/version-increment@2021.11.2
id: version id: version
with: with:
scheme: semver scheme: semver
@@ -82,10 +82,12 @@ Examples:
### 📤 Outputs ### 📤 Outputs
| name | description | | name | description |
| :--- | :--- | | :--- | :--- |
| current_version | The current latest version detected from the git repositories tags | | current-version | The current latest version detected from the git repositories tags |
| version | The incremented version number (e.g. the next version) | | current-v-version | The current latest version detected from the git repositories tags, prefixed with a `v` character |
| version | The incremented version number (e.g. the next version) |
| v-version | The incremented version number (e.g. the next version), prefixed with a `v` character |
## 💕 Contributing ## 💕 Contributing

View File

@@ -87,3 +87,4 @@ fi
echo " The new version is ${new_version}" echo " The new version is ${new_version}"
echo "::set-output name=version::${new_version}" echo "::set-output name=version::${new_version}"
echo "::set-output name=v-version::v${new_version}"

View File

@@ -62,3 +62,4 @@ fi
echo " The current normal version is ${current_version}" echo " The current normal version is ${current_version}"
echo "::set-output name=current-version::${current_version}" echo "::set-output name=current-version::${current_version}"
echo "::set-output name=current-v-version::v${current_version}"