Skip to content

Commit 0d049d9

Browse files
committed
ci: use latest release tag for changelog
1 parent 469d948 commit 0d049d9

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/ci-android.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,16 @@ jobs:
107107
with:
108108
name: root-module-debug
109109
path: artifacts/root-module-debug
110-
111110
- id: prev
111+
env:
112+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112113
run: |
113-
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
114-
echo "tag=$TAG" >> $GITHUB_OUTPUT
114+
TAG=$(gh release list \
115+
--limit 1 \
116+
--json tagName \
117+
--jq '.[0].tagName')
115118
119+
echo "tag=$TAG" >> $GITHUB_OUTPUT
116120
- id: changelog
117121
run: |
118122
if [ -z "${{ steps.prev.outputs.tag }}" ]; then
@@ -134,4 +138,4 @@ jobs:
134138
artifacts/**/* \
135139
-t "Nightly ${{ needs.build.outputs.short_sha }}" \
136140
--notes "${{ steps.changelog.outputs.notes }}" \
137-
--prerelease
141+
--prerelease

0 commit comments

Comments
 (0)