Skip to content

Commit 1bc3d28

Browse files
committed
Use rustc-josh-sync merge commit message for pull PR description
1 parent f6466ce commit 1bc3d28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ jobs:
231231
exit ${exitcode}
232232
fi
233233
234+
# Store merge commit message
235+
git log -1 --pretty=%B > message.txt
236+
234237
# Format changes
235238
./miri toolchain
236239
./miri fmt --check || (./miri fmt && git commit -am "fmt")
@@ -239,7 +242,7 @@ jobs:
239242
BRANCH="rustup-$(date -u +%Y-%m-%d)"
240243
git switch -c $BRANCH
241244
git push -u origin $BRANCH
242-
gh pr create -B master --title 'Automatic Rustup' --body "Update \`rustc\` to https://github.com/rust-lang/rust/commit/$(cat rust-version)."
245+
gh pr create -B master --title 'Automatic Rustup' --body-file message.txt
243246
env:
244247
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
245248

0 commit comments

Comments
 (0)