fix: handle multiline message
This commit is contained in:
parent
19df5355ba
commit
d4df12505b
1 changed files with 3 additions and 1 deletions
4
.github/workflows/beta.yml
vendored
4
.github/workflows/beta.yml
vendored
|
@ -23,7 +23,9 @@ jobs:
|
|||
id: get_commits
|
||||
run: |
|
||||
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
|
||||
|
||||
- name: Set variables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue