Skip to content

Commit

Permalink
CI integration - release note
Browse files Browse the repository at this point in the history
  • Loading branch information
kid1412621 committed Apr 25, 2024
1 parent 19426fb commit 14cba57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ jobs:
run: ./gradlew assembleRelease --no-daemon
- name: Generate release notes
run: |
echo ${{ github.ref_name }}
RELEASE_NOTE=$(awk -v version="${{ github.ref_name }}" '($0 ~ "^## " version "($|[[:space:]])") {p=1;next} /^## / {p=0} p && NF' CHANGELOG.md
echo $RELEASE_NOTE
echo RELEASE_NOTE=$RELEASE_NOTE >> $GITHUB_ENV
{
echo 'RELEASE_NOTE<<EOF'
awk -v version="${{ github.ref_name }}" '($0 ~ "^## " version "($|[[:space:]])") {p=1;next} /^## / {p=0} p && NF' CHANGELOG.md
echo EOF
} >> "$GITHUB_ENV"
echo ${{ env.RELEASE_NOTE }}
- name: Publish APK on Github Release
uses: softprops/action-gh-release@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## 0.1.1 - 2024-04-25

### Updates

- Bump compose lib version to 2024.04.01

## 0.1.0 - 2024-04-24
Expand Down

0 comments on commit 14cba57

Please sign in to comment.