Skip to content

Commit

Permalink
remove new version from latest version list
Browse files Browse the repository at this point in the history
  • Loading branch information
samwinebrake authored Dec 18, 2024
1 parent 80cd4dc commit d595d2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Get previous tag
PREVIOUS_TAG=$(git tag --sort=-version:refname | head -n 1)
echo "Previous tag: $PREVIOUS_TAG"
NEW_VERSION="${{ needs.version-bump.outputs.NEW_VERSION }}"
PREVIOUS_TAG=$(git tag --sort=-version:refname | grep -v "v$NEW_VERSION" | head -n 1)
echo "Previous tag: $PREVIOUS_TAG"
# Generate release notes using GitHub API
if [ -n "$PREVIOUS_TAG" ]; then
Expand Down

0 comments on commit d595d2b

Please sign in to comment.