From 38a48eeef19c1970421c66eeccd60b730c64f7d4 Mon Sep 17 00:00:00 2001 From: Phil Jay Date: Mon, 15 Nov 2021 06:54:57 +1100 Subject: [PATCH] Add `v` prefixed version outputs See: https://github.com/reecetech/version-increment/issues/8 --- README.md | 12 +++++++----- version-increment.sh | 1 + version-lookup.sh | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ebee373..f560a54 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ uses: actions/checkout@v2 - name: Get next version - uses: reecetech/version-increment@2021.11.1 + uses: reecetech/version-increment@2021.11.2 id: version with: scheme: semver @@ -82,10 +82,12 @@ Examples: ### 📤 Outputs -| name | description | -| :--- | :--- | -| current_version | The current latest version detected from the git repositories tags | -| version | The incremented version number (e.g. the next version) | +| name | description | +| :--- | :--- | +| 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) | +| v-version | The incremented version number (e.g. the next version), prefixed with a `v` character | ## 💕 Contributing diff --git a/version-increment.sh b/version-increment.sh index 2f97fa7..f8c29b7 100755 --- a/version-increment.sh +++ b/version-increment.sh @@ -87,3 +87,4 @@ fi echo "â„šī¸ The new version is ${new_version}" echo "::set-output name=version::${new_version}" +echo "::set-output name=v-version::v${new_version}" diff --git a/version-lookup.sh b/version-lookup.sh index cedff1a..0dd91e9 100755 --- a/version-lookup.sh +++ b/version-lookup.sh @@ -62,3 +62,4 @@ fi echo "â„šī¸ The current normal version is ${current_version}" echo "::set-output name=current-version::${current_version}" +echo "::set-output name=current-v-version::v${current_version}"