Skip to content

Commit

Permalink
Use poetry version
Browse files Browse the repository at this point in the history
  • Loading branch information
grieve54706 committed May 24, 2024
1 parent 34eed7e commit 4bbbda0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 4bbbda0

Please sign in to comment.