Skip to content

Commit

Permalink
Fix fallback command
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoseph committed Nov 14, 2023
1 parent 6e3bce5 commit 8219b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
git fetch --tags
# Grab the latest tag from the current branch unless overridden. If it doesn't exist, grab the latest tag across all branches.
last_release_tag=$BASELINE_TAG
if [[ -z "$BASELINE_TAG" ]]; then
BASELINE_TAG=$(git describe --tags --abbrev=0)
last_release_tag=$(git describe --tags --abbrev=0 || git describe --tags $(git rev-list --tags --max-count=1))
fi
last_release_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
echo "Using tag: $last_release_tag"
last_release_date=$(git log -1 --format=%aI "$last_release_tag")
Expand Down

0 comments on commit 8219b40

Please sign in to comment.