mirror of
https://github.com/reecetech/version-increment.git
synced 2025-12-21 14:35:44 +00:00
Add v prefixed version outputs
See: https://github.com/reecetech/version-increment/issues/8
This commit is contained in:
@@ -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
|
||||||
@@ -84,8 +84,10 @@ Examples:
|
|||||||
|
|
||||||
| 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 |
|
||||||
|
| 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) |
|
| 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
|
||||||
|
|
||||||
|
|||||||
@@ -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}"
|
||||||
|
|||||||
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user