Skip to content

Commit fc0475e

Browse files
authored
add commit list to nightly release
1 parent 5362108 commit fc0475e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
with:
3434
name: Debug APK
3535
path: android/app/build/outputs/apk/**/*.apk
36-
3736
nightly-release:
3837
runs-on: ubuntu-latest
3938
if: github.event_name == 'push' && github.ref == 'refs/heads/release-nightly' || github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'true'
@@ -56,9 +55,17 @@ jobs:
5655
apksigner sign --ks debug.keystore --ks-key-alias androiddebugkey --ks-pass pass:android --key-pass pass:android "./$APK_NAME"
5756
- name: Verify APK
5857
run: apksigner verify "./$APK_NAME"
58+
- name: Fetch the latest non-nightly release tag
59+
id: fetch-tag
60+
run: echo "::set-output name=tag::$(git describe --tags $(git rev-list --tags --max-count=1))"
61+
- name: Retrieve commits since the last release
62+
id: get-commits
63+
run: |
64+
COMMITS=$(git log ${{ steps.fetch-tag.outputs.tag }}..HEAD --pretty=format:"- %s (%h)" --abbrev-commit)
65+
echo "::set-output name=commits::${COMMITS}"
5966
- name: Delete release if exist then create release
6067
env:
6168
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6269
run: |
6370
gh release view "nightly" && gh release delete "nightly" -y --cleanup-tag
64-
gh release create "nightly" "./$APK_NAME" -p -t "Nightly Release" --generate-notes
71+
gh release create "nightly" "./$APK_NAME" -p -t "Nightly Release" -n "${{ steps.get-commits.outputs.commits }}" --generate-notes

0 commit comments

Comments
 (0)