Skip to content

Commit 8ec92b5

Browse files
committed
remove cargo-upgrades
1 parent a442f40 commit 8ec92b5

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.github/workflows/dependencies.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ env:
1919
PR_MESSAGE: |
2020
Automation to keep dependencies in `Cargo.lock` current.
2121
22-
In addition to the semver-compatible updates in this PR,
23-
the following major upgrades are also available:
22+
The following is the output from `cargo update`:
2423
2524
jobs:
2625
update:
@@ -36,28 +35,23 @@ jobs:
3635
# Extract the stage0 version
3736
TOOLCHAIN=$(jq -r '.compiler | {version,date} | join("-")' -- src/stage0.json)
3837
# Install and set as default
39-
rustup toolchain install $TOOLCHAIN
38+
rustup toolchain install --no-self-update --profile minimal $TOOLCHAIN
4039
rustup default $TOOLCHAIN
41-
- name: install cargo-upgrades
42-
run: cargo install -f cargo-upgrades $CARGO_UPGRADES_VER
4340
4441
- name: cargo update
45-
run: cargo update
42+
# `cargo update` outputs to stderr
43+
run: cargo update 2>&1 > cargo_update.log
4644
- name: upload Cargo.lock artifact for use in PR
4745
uses: actions/upload-artifact@v3
4846
with:
4947
name: Cargo-lock
5048
path: Cargo.lock
5149
retention-days: 1
52-
53-
- name: cargo upgrades
54-
# cargo-upgrade exits 7 if upgrades are available, ignore that
55-
run: cargo upgrades > cargo_upgrades.stdout || exit 0
56-
- name: upload upgrades artifact for use in PR
50+
- name: upload cargo-update log artifact for use in PR
5751
uses: actions/upload-artifact@v3
5852
with:
59-
name: cargo-upgrades
60-
path: cargo_upgrades.stdout
53+
name: cargo-updates
54+
path: cargo_update.log
6155
retention-days: 1
6256

6357
pr:
@@ -75,16 +69,16 @@ jobs:
7569
uses: actions/download-artifact@v3
7670
with:
7771
name: Cargo-lock
78-
- name: download cargo-upgrades from update job
72+
- name: download cargo-update log from update job
7973
uses: actions/download-artifact@v3
8074
with:
81-
name: cargo-upgrades
75+
name: cargo-updates
8276

8377
- name: craft PR body
8478
run: |
8579
echo "${PR_MESSAGE}" > body.md
8680
echo '```txt' >> body.md
87-
cat cargo_upgrades.stdout >> body.md
81+
cat cargo_update.log >> body.md
8882
echo '```' >> body.md
8983
9084
- name: commit

0 commit comments

Comments
 (0)