diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml index 1a1e1043e..ebc7beb07 100644 --- a/.github/workflows/stable-release.yml +++ b/.github/workflows/stable-release.yml @@ -83,17 +83,14 @@ jobs: working-directory: ibis-server run: | if [ -n "${{ github.event.inputs.specific_version }}" ]; then - version=${{ github.event.inputs.specific_version }} + poetry version --next-phase ${{ github.event.inputs.specific_version }} else - version=$(grep -m 1 version pyproject.toml | grep -e '\d.\d.\d' -o) - IFS=. read major minor micro <<< "${version}" - micro=$((micro + 1)) - version=$major.$minor.$micro + poetry version patch fi - poetry version --next-phase $version git add pyproject.toml git commit -m "Upgrade ibis version to $version" git push + version=$(poetry version | awk '{print $2}') echo "value=$version" >> $GITHUB_OUTPUT outputs: next_version: ${{ steps.next_version.outputs.value }}