Skip to content

Commit

Permalink
Add v prefixed version outputs
Browse files Browse the repository at this point in the history
See: #8
  • Loading branch information
ps-jay committed Nov 14, 2021
1 parent 4988018 commit 38a48ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions version-increment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
1 change: 1 addition & 0 deletions version-lookup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 38a48ee

Please sign in to comment.