Mirrowel commited on
Commit
da32588
·
1 Parent(s): 00502b9

feat: add previous tag information to changelog output and update release notes

Browse files
Files changed (1) hide show
  1. .github/workflows/build.yml +3 -0
.github/workflows/build.yml CHANGED
@@ -134,6 +134,7 @@ jobs:
134
  CHANGELOG_B64=$(base64 -w 0 changelog.md)
135
  echo "changelog_b64=$CHANGELOG_B64" >> $GITHUB_OUTPUT
136
  echo "has_changelog=true" >> $GITHUB_OUTPUT
 
137
  else
138
  echo "⚠️ git-cliff produced empty output, creating manual changelog"
139
 
@@ -249,6 +250,8 @@ jobs:
249
 
250
  > **Note**: This is an automated build release."
251
 
 
 
252
  gh release create build-${{ steps.version.outputs.version }} \
253
  --title "Build ${{ steps.version.outputs.version }}" \
254
  --notes "$NOTES" \
 
134
  CHANGELOG_B64=$(base64 -w 0 changelog.md)
135
  echo "changelog_b64=$CHANGELOG_B64" >> $GITHUB_OUTPUT
136
  echo "has_changelog=true" >> $GITHUB_OUTPUT
137
+ echo "previous_tag=$LAST_TAG" >> $GITHUB_OUTPUT
138
  else
139
  echo "⚠️ git-cliff produced empty output, creating manual changelog"
140
 
 
250
 
251
  > **Note**: This is an automated build release."
252
 
253
+ NOTES="$NOTES\n\n**Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ steps.changelog.outputs.previous_tag }}...build-${{ steps.version.outputs.version }}"
254
+
255
  gh release create build-${{ steps.version.outputs.version }} \
256
  --title "Build ${{ steps.version.outputs.version }}" \
257
  --notes "$NOTES" \