mirror of
https://github.com/reecetech/version-increment.git
synced 2025-12-21 14:35:44 +00:00
Exposing major, minor and patch numbers as outputs
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@2022.2.3
|
uses: reecetech/version-increment@2022.2.4
|
||||||
id: version
|
id: version
|
||||||
with:
|
with:
|
||||||
scheme: semver
|
scheme: semver
|
||||||
@@ -88,6 +88,9 @@ Examples:
|
|||||||
| current-v-version | The current latest version detected from the git repositories tags, prefixed with a `v` character |
|
| 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 |
|
| v-version | The incremented version number (e.g. the next version), prefixed with a `v` character |
|
||||||
|
| major-version | Major number of the incremented version |
|
||||||
|
| minor-version | Minor number of the incremented version |
|
||||||
|
| patch-version | Patch number of the incremented version |
|
||||||
|
|
||||||
## 💕 Contributing
|
## 💕 Contributing
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,15 @@ outputs:
|
|||||||
v-version:
|
v-version:
|
||||||
description: 'Incremented version calculated, prefixed with a `v` charatcter'
|
description: 'Incremented version calculated, prefixed with a `v` charatcter'
|
||||||
value: ${{ steps.version-increment.outputs.v-version }}
|
value: ${{ steps.version-increment.outputs.v-version }}
|
||||||
|
major-version:
|
||||||
|
description: 'Major number of the incremented version'
|
||||||
|
value: ${{ steps.version-increment.outputs.major-version }}
|
||||||
|
minor-version:
|
||||||
|
description: 'Minor number of the incremented version'
|
||||||
|
value: ${{ steps.version-increment.outputs.minor-version }}
|
||||||
|
patch-version:
|
||||||
|
description: 'Patch number of the incremented version'
|
||||||
|
value: ${{ steps.version-increment.outputs.patch-version }}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|||||||
@@ -88,3 +88,6 @@ 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}"
|
echo "::set-output name=v-version::v${new_version}"
|
||||||
|
echo "::set-output name=major-version::v${version_array[0]}"
|
||||||
|
echo "::set-output name=minor-version::v${version_array[1]}"
|
||||||
|
echo "::set-output name=patch-version::v${version_array[2]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user