Skip to content

Commit

Permalink
One last try with this crap
Browse files Browse the repository at this point in the history
  • Loading branch information
SneWs committed Feb 9, 2025
1 parent 47691f8 commit aa7b53d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,16 @@ jobs:
git fetch --tags --force
# Get the last tag safely (fallback if no tags exist)
PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "HEAD~10")
# Force-update `latest` as an annotated tag
git tag -fa latest -m "Latest build"
git push origin latest --force
# Generate the changelog from the previous tag to HEAD
git log "$PREV_TAG..HEAD" --pretty=format:"* %h - %s" >> changelog.txt
git log latest..HEAD --pretty=format:"* %h - %s" >> changelog.txt
echo "" >> changelog.txt
echo "✅ Changelog generated:"
cat changelog.txt
# Force-update `latest` as an annotated tag
git tag -fa latest -m "GitHub Actions - Latest"
git push origin latest --force
# Update the GitHub release
echo "Updating latest release"
gh release edit latest --notes-file changelog.txt --repo ${{ github.repository }}
Expand Down

0 comments on commit aa7b53d

Please sign in to comment.