Skip to content

Commit

Permalink
GHA: fix py release on manual dispatch
Browse files Browse the repository at this point in the history
Signed-off-by: Isabella Basso do Amaral <[email protected]>
  • Loading branch information
isinyaaa committed Dec 12, 2023
1 parent f720231 commit b07bace
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ jobs:
working-directory: clients/python
run: |
set -o pipefail
[[ $(poetry version | cut -d' ' -f1) == $(grep -o '[0-9\.]*' <<< "$GITHUB_REF") ]] ||\
echo "::error title='$GITHUB_REF tag does not match project version'::"
LATEST_TAG=$(git describe --tags --match="py-v*")
if [[ "$LATEST_TAG" =~ $(poetry version | cut -d' ' -f1) ]]; then
echo "::error title='$LATEST_TAG tag does not match project version'::"
exit 1
fi
- name: Build package
working-directory: clients/python
Expand Down

0 comments on commit b07bace

Please sign in to comment.