From ec874e9a7807561662fe3e3528a850fe4f5557d0 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Fri, 31 May 2024 22:21:59 +1100 Subject: [PATCH] Fix PR body construction in pr-for-updates workflow Signed-off-by: NikitaSkrynnik --- .github/workflows/pr-for-updates.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-for-updates.yaml b/.github/workflows/pr-for-updates.yaml index 7a68e19..ee3b0e6 100644 --- a/.github/workflows/pr-for-updates.yaml +++ b/.github/workflows/pr-for-updates.yaml @@ -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<> $GITHUB_ENV echo "$PULL_REQUEST_BODY" >> $GITHUB_ENV