Skip to content

Commit

Permalink
More reliable latest tag source (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
squadgazzz authored Jul 9, 2024
1 parent 98928ec commit 60e969d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60e969d

Please sign in to comment.