Skip to content

Commit 97a4142

Browse files
committed
Fix release notes
1 parent c195e83 commit 97a4142

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ jobs:
5858
- name: Set release notes
5959
id: set_release_notes
6060
run: |
61-
RELEASE_NOTES=$(cat commits.txt)
61+
RELEASE_NOTES=$(awk '{printf "%s%%0A", $0}' commits.txt)
62+
RELEASE_NOTES="${RELEASE_NOTES%\\%0A}"
6263
RELEASE_NOTES="${RELEASE_NOTES//'%'/'%25'}"
63-
RELEASE_NOTES="${RELEASE_NOTES//$'\n'/'%0A'}"
6464
RELEASE_NOTES="${RELEASE_NOTES//$'\r'/'%0D'}"
6565
echo "release_notes=$RELEASE_NOTES" >> $GITHUB_OUTPUT
66+
echo "Release Notes: $RELEASE_NOTES"
6667
6768
- name: Create Release
6869
id: create_release
@@ -84,7 +85,6 @@ jobs:
8485
echo "apk_path=app/build/outputs/apk/release/$APK_NAME" >> $GITHUB_OUTPUT
8586
echo "APK Name: $APK_NAME"
8687
echo "APK Path: app/build/outputs/apk/release/$APK_NAME"
87-
ls -l app/build/outputs/apk/release/
8888
8989
- name: Upload APK Asset
9090
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)