Skip to content

Commit 96121e4

Browse files
fix version number calculation (#2162)
* fix version number calculation * fix version number calculation * Update RELEASING.md Co-authored-by: Jen Gilbert <[email protected]> --------- Co-authored-by: Jen Gilbert <[email protected]>
1 parent 5ba1b4b commit 96121e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/prepare_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: |
4646
if [ "${VERSION}" = "" ] ; then
4747
LATEST_TAG=$(git describe --tags --abbrev=0)
48-
NEXT_TAG=$(echo ${LATEST_TAG#v} | awk '{split($0, a, "."); print a[1] "." a[2] + 1 "." a[3]}')
48+
NEXT_TAG=$(echo ${LATEST_TAG#v} | awk '{split($0, a, "."); print a[1] "." a[2] + 1 ".0"}')
4949
echo "version=$NEXT_TAG" >> $GITHUB_OUTPUT
5050
else
5151
echo "version=$VERSION" >> $GITHUB_OUTPUT

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The release process is controlled and run by GitHub Actions.
2828
### Update Changelog
2929

3030
1. Open [prepare release](https://github.com/DataDog/datadog-api-client-ruby/actions/workflows/prepare_release.yml) and click on `Run workflow` dropdown.
31-
1. Enter new version identifier in the `New version number` input box (e.g. `1.8.0`).
31+
1. If needed, enter a new version identifier in the `New version number` input box (e.g. `1.10.0`). The default updates the previous minor.
3232
1. Trigger the action by clicking on `Run workflow` button.
3333

3434
### Review

0 commit comments

Comments
 (0)