diff --git a/.github/workflows/prepare_release.yml b/.github/workflows/prepare_release.yml index 3bc6e607575..d15d383aaf9 100644 --- a/.github/workflows/prepare_release.yml +++ b/.github/workflows/prepare_release.yml @@ -42,7 +42,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 5ea3a5fe56a..d99cb717137 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -22,7 +22,7 @@ The release process is controlled and run by GitHub Actions. ### Update Changelog 1. Open [prepare release](https://github.com/DataDog/datadog-api-client-go/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.9.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