File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,13 +201,36 @@ jobs:
201201 runs-on : ubuntu-latest
202202 needs : [build-linux, build-darwin, build-windows]
203203 steps :
204+ - uses : actions/checkout@v4
205+ with :
206+ fetch-depth : 0
207+ fetch-tags : true
208+
209+ - name : Resolve previous app tag
210+ id : previous-tag
211+ shell : bash
212+ run : |
213+ current_tag="${GITHUB_REF_NAME}"
214+ previous_tag="$(git tag --sort=-version:refname -l 'v[0-9]*' | grep -Fxv "$current_tag" | head -1 || true)"
215+
216+ echo "value=$previous_tag" >> "$GITHUB_OUTPUT"
217+
218+ if [[ -n "$previous_tag" ]]; then
219+ echo "Using previous app tag: $previous_tag"
220+ else
221+ echo "No previous app tag found. GitHub will generate first-release notes."
222+ fi
223+
204224 - uses : actions/download-artifact@v4
205225 with :
206226 merge-multiple : true
207227
208228 - uses : softprops/action-gh-release@v2
209229 with :
210230 name : QueryBox ${{ github.ref_name }}
231+ tag_name : ${{ github.ref_name }}
232+ target_commitish : ${{ github.sha }}
233+ previous_tag : ${{ steps.previous-tag.outputs.value }}
211234 generate_release_notes : true
212235 files : |
213236 querybox-linux-amd64.tar.gz
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ Both the app and plugins follow [Semantic Versioning](https://semver.org/) (`MAJ
5656
57575 . ** Verify the release** at ` https://github.com/felixdotgo/querybox/releases ` :
5858 - All 3 platform artifacts are attached
59- - Release notes are auto-generated from commit messages
59+ - Release notes are auto-generated from commits between the previous app tag ( ` v* ` ) and the new tag
6060
6161### What gets embedded
6262
You can’t perform that action at this time.
0 commit comments