Skip to content

Commit a442f40

Browse files
committed
use bootstrap toolchain
1 parent 5652df0 commit a442f40

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/dependencies.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ env:
1717
CARGO_UPGRADES_VER: --version=1.3.6
1818
PR_TITLE: Weekly `cargo update`
1919
PR_MESSAGE: |
20+
Automation to keep dependencies in `Cargo.lock` current.
21+
2022
In addition to the semver-compatible updates in this PR,
2123
the following major upgrades are also available:
2224
@@ -28,12 +30,14 @@ jobs:
2830
- name: checkout the source code
2931
uses: actions/checkout@v3
3032
with:
31-
fetch-depth: 2
3233
submodules: recursive
33-
- name: install the latest nightly
34+
- name: install the bootstrap toolchain
3435
run: |
35-
rustup toolchain install nightly
36-
rustup default nightly
36+
# Extract the stage0 version
37+
TOOLCHAIN=$(jq -r '.compiler | {version,date} | join("-")' -- src/stage0.json)
38+
# Install and set as default
39+
rustup toolchain install $TOOLCHAIN
40+
rustup default $TOOLCHAIN
3741
- name: install cargo-upgrades
3842
run: cargo install -f cargo-upgrades $CARGO_UPGRADES_VER
3943

0 commit comments

Comments
 (0)