Skip to content

Commit

Permalink
fix version number calculation (#2162)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
amaskara-dd and jhgilbert authored Dec 17, 2024
1 parent 5ba1b4b commit 96121e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
if [ "${VERSION}" = "" ] ; then
LATEST_TAG=$(git describe --tags --abbrev=0)
NEXT_TAG=$(echo ${LATEST_TAG#v} | awk '{split($0, a, "."); print a[1] "." a[2] + 1 "." a[3]}')
NEXT_TAG=$(echo ${LATEST_TAG#v} | awk '{split($0, a, "."); print a[1] "." a[2] + 1 ".0"}')
echo "version=$NEXT_TAG" >> $GITHUB_OUTPUT
else
echo "version=$VERSION" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The release process is controlled and run by GitHub Actions.
### Update Changelog

1. Open [prepare release](https://github.com/DataDog/datadog-api-client-ruby/actions/workflows/prepare_release.yml) and click on `Run workflow` dropdown.
1. Enter new version identifier in the `New version number` input box (e.g. `1.8.0`).
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.
1. Trigger the action by clicking on `Run workflow` button.

### Review
Expand Down

0 comments on commit 96121e4

Please sign in to comment.