File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed
Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -132,41 +132,15 @@ jobs:
132132 needs : [publish-gem, publish-wasm]
133133
134134 steps :
135- - uses : actions/checkout@v4
136- with :
137- fetch-depth : 0
138-
139135 - name : Download all artifacts
140136 uses : actions/download-artifact@v4
141137 with :
142138 path : artifacts
143139
144- - name : Generate changelog
145- id : changelog
146- run : |
147- # Get previous tag
148- PREV_TAG=$(git describe --abbrev=0 --tags HEAD^ 2>/dev/null || echo "")
149- CURRENT_TAG=${GITHUB_REF#refs/tags/}
150-
151- echo "## What's Changed" > CHANGELOG.md
152- echo "" >> CHANGELOG.md
153-
154- if [[ -n "$PREV_TAG" ]]; then
155- # Get commits between tags
156- git log --pretty=format:"* %s (%h)" $PREV_TAG..$CURRENT_TAG >> CHANGELOG.md
157- else
158- # First release - get all commits
159- git log --pretty=format:"* %s (%h)" >> CHANGELOG.md
160- fi
161-
162- echo "" >> CHANGELOG.md
163- echo "" >> CHANGELOG.md
164- echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/$PREV_TAG...$CURRENT_TAG" >> CHANGELOG.md
165-
166140 - name : Create Release
167141 uses : softprops/action-gh-release@v2
168142 with :
169- body_path : CHANGELOG.md
143+ generate_release_notes : true
170144 files : |
171145 artifacts/gem/*.gem
172146 artifacts/wasm/*
You can’t perform that action at this time.
0 commit comments