Skip to content

Commit f1e5570

Browse files
committed
Update maven.yml
Trying to fix a multi-line commit message issue
1 parent 6a1a23d commit f1e5570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Format ChangeLog
3838
id: get-changelog
3939
if: success() && github.event_name == 'push' && github.repository == 'MemoriesOfTime/Nukkit-MOT' && contains(github.ref_name, 'master')
40-
run: echo "changelog=${{ github.event.commits[0].message }}" >> $GITHUB_OUTPUT
40+
run: echo "changelog=$(echo '${{ github.event.commits[0].message }}' | sed ':a;N;$!ba;s/\n/\\n/g')" >> $GITHUB_OUTPUT
4141
- name: Get Time
4242
id: time
4343
uses: nanzm/[email protected]

0 commit comments

Comments
 (0)