Skip to content

Commit 6bf598f

Browse files
committed
fix: wrong release notes
1 parent 5973578 commit 6bf598f

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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

docs/releasing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Both the app and plugins follow [Semantic Versioning](https://semver.org/) (`MAJ
5656

5757
5. **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

0 commit comments

Comments
 (0)