diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04f25a8..082c83f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: id: tag_version run: | # Extracts the latest version tag, bumps the minor version - LATEST_VERSION=$(git tag --sort=-authordate --merged=main | head --lines 1) + LATEST_VERSION=$(curl -s https://api.github.com/repos/gnosis/solvers/releases/latest | jq -r '.tag_name') if ! [[ "$LATEST_VERSION" =~ ^v[0-9]+\.[0-9]+\..* ]]; then echo "Invalid tag format, cannot bump version of: $LATEST_VERSION" exit 1