Skip to content

Commit 8c0005d

Browse files
authored
last commit message: remove quotes from string instead of escaping
1 parent c94e86e commit 8c0005d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/syncrepos.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
id: message
3030
run: |
3131
cd _gfm/
32-
echo "COMMIT_MESSAGE=$(git log -1 --format=%s)" >> "$GITHUB_OUTPUT"
32+
msg="$(git log -n 1 --pretty=reference | sed -e 's/["\\$$`]//g' -e "s/'//g")"
33+
echo "COMMIT_MESSAGE=$msg" >> "$GITHUB_OUTPUT"
3334
cd ..
3435
- name: Copy files over
3536
run: |

0 commit comments

Comments
 (0)