diff --git a/.github/workflows/prepare_release.yml b/.github/workflows/prepare_release.yml index 348b02c50cfe..4d962376abba 100644 --- a/.github/workflows/prepare_release.yml +++ b/.github/workflows/prepare_release.yml @@ -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 diff --git a/RELEASING.md b/RELEASING.md index cca1500472f5..1b593ae4dcae 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -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