ci: use latest release tag for changelog

This commit is contained in:
Kavish Devar
2026-04-26 16:17:02 +05:30
parent 469d948061
commit 0d049d93fb

View File

@@ -107,12 +107,16 @@ jobs:
with:
name: root-module-debug
path: artifacts/root-module-debug
- id: prev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
echo "tag=$TAG" >> $GITHUB_OUTPUT
TAG=$(gh release list \
--limit 1 \
--json tagName \
--jq '.[0].tagName')
echo "tag=$TAG" >> $GITHUB_OUTPUT
- id: changelog
run: |
if [ -z "${{ steps.prev.outputs.tag }}" ]; then
@@ -134,4 +138,4 @@ jobs:
artifacts/**/* \
-t "Nightly ${{ needs.build.outputs.short_sha }}" \
--notes "${{ steps.changelog.outputs.notes }}" \
--prerelease
--prerelease