@@ -24,17 +24,35 @@ jobs:
24
24
echo "next_toolchain_date=$next_toolchain_date" >> $GITHUB_ENV
25
25
sed -i "/^channel/ s/$current_toolchain_date/$next_toolchain_date/" rust-toolchain.toml
26
26
git diff
27
+ git clone https://github.com/rust-lang/rust rust.git
28
+ cd rust.git
29
+ current_toolchain_hash=$(curl https://static.rust-lang.org/dist/$current_toolchain_date/channel-rust-nightly-git-commit-hash.txt)
30
+ echo "current_toolchain_hash=$current_toolchain_hash" >> $GITHUB_ENV
31
+ next_toolchain_hash=$(curl https://static.rust-lang.org/dist/$next_toolchain_date/channel-rust-nightly-git-commit-hash.txt)
32
+ echo "next_toolchain_hash=$next_toolchain_hash" >> $GITHUB_ENV
33
+ EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
34
+ echo "git_log<<$EOF" >> $GITHUB_ENV
35
+ git log --oneline $current_toolchain_hash..$next_toolchain_hash | \
36
+ sed 's#^#https://github.com/rust-lang/rust/commit/#' >> $GITHUB_ENV
37
+ echo "$EOF" >> $GITHUB_ENV
38
+ cd ..
39
+ rm -rf rust.git
27
40
- name : Create Pull Request
28
41
uses : peter-evans/create-pull-request@v4
29
42
with :
30
43
commit-message : Upgrade Rust toolchain to nightly-${{ env.next_toolchain_date }}
31
44
branch : toolchain-${{ env.next_toolchain_date }}
32
45
delete-branch : true
33
46
title : ' Automatic toolchain upgrade to nightly-${{ env.next_toolchain_date }}'
34
- body : |
47
+ body : >
35
48
Update Rust toolchain from nightly-${{ env.current_toolchain_date }} to
36
49
nightly-${{ env.next_toolchain_date }} without any other source changes.
37
50
38
- Thiis is an automatically generated pull request. If any of the CI checks fail,
51
+ This is an automatically generated pull request. If any of the CI checks fail,
39
52
manual intervention is required. In such a case, review the changes at
40
- https://github.com/rust-lang/rust.
53
+ https://github.com/rust-lang/rust from
54
+ https://github.com/rust-lang/rust/commit/${{ env.current_toolchain_hash }} up to
55
+ https://github.com/rust-lang/rust/commit/${{ env.next_toolchain_hash }}. The log
56
+ for this commit range is:
57
+
58
+ ${{ env.git_log }}
0 commit comments