Skip to content

Commit 456f4f8

Browse files
committed
feat(ci): extract changelog for release
1 parent 8342dc5 commit 456f4f8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,17 @@ jobs:
8787
ANDROID_PUBLISHER_CREDENTIALS: ${{ secrets.GOOGLE_CLOUD_SERVICE_ACCOUNT_CREDENTIALS }}
8888
run: ./project/gradlew -p project assembleRelease --scan
8989

90+
- name: Extract changelog
91+
run: awk '/^## / { if (p) {exit}; { p=1; next} } p' CHANGELOG.md > this_release_changelog.md
92+
9093
- name: Create release
9194
id: create_release
9295
uses: softprops/action-gh-release@v2
9396
env:
9497
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9598
with:
9699
tag_name: ${{ github.ref_name }}
97-
body_path: ./CHANGELOG.md
100+
body_path: ./this_release_changelog.md
98101
name: ${{ github.ref_name }}
99102
draft: true
100103
prerelease: ${{ contains(github.ref_name, 'beta') }}

0 commit comments

Comments
 (0)