Skip to content

Commit

Permalink
Merge pull request #79 from NikitaSkrynnik/fix-pr-body
Browse files Browse the repository at this point in the history
Fix PR body construction in pr-for-updates workflow
  • Loading branch information
denis-tingaikin authored May 31, 2024
2 parents 0c0d0e1 + ec874e9 commit 36adfab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-for-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- name: Construct PR message
run: |
PULL_REQUEST_BODY=$(git log --pretty='format:%B' -1 | sed '/^$/d;$d' | sed 's/#/# /g')
PULL_REQUEST_BODY=$(git log --format="%s%nCommit: %h%nAuthor: %an%nDate: %ad" -n 1')
echo "$PULL_REQUEST_BODY"
echo "PULL_REQUEST_BODY<<EOF" >> $GITHUB_ENV
echo "$PULL_REQUEST_BODY" >> $GITHUB_ENV
Expand Down

0 comments on commit 36adfab

Please sign in to comment.