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