fix: handle multiline message

This commit is contained in:
rebelonion 2024-02-04 04:27:12 -06:00
parent 19df5355ba
commit d4df12505b

View file

@ -23,7 +23,9 @@ jobs:
id: get_commits id: get_commits
run: | run: |
echo 'COMMIT_LOG<<EOF' >> $GITHUB_ENV echo 'COMMIT_LOG<<EOF' >> $GITHUB_ENV
git log ${{ github.event.before }}..${{ github.sha }} --pretty=format:"%s" -10 >> $GITHUB_ENV git log ${{ github.event.before }}..${{ github.sha }} --pretty=format:"%s" -10 | while IFS= read -r line; do
echo "$line" >> $GITHUB_ENV
done
echo 'EOF' >> $GITHUB_ENV echo 'EOF' >> $GITHUB_ENV
- name: Set variables - name: Set variables