Update library/Cargo.toml in weekly job · rust-lang/rust@35752cf (original) (raw)

Original file line number Diff line number Diff line change
@@ -64,6 +64,10 @@ jobs:
64 64 - name: cargo update
65 65 # Remove first line that always just says "Updating crates.io index"
66 66 run: cargo update 2>&1 | sed '/crates.io index/d' tee -a cargo_update.log
67 + - name: cargo update library
68 +run: |
69 + echo -e "\nlibrary dependencies:" >> cargo_update.log
70 + cargo update --manifest-path library/Cargo.toml 2>&1 | sed '/crates.io index/d' tee -a cargo_update.log
67 71 - name: cargo update rustbook
68 72 run: |
69 73 echo -e "\nrustbook dependencies:" >> cargo_update.log
@@ -74,6 +78,7 @@ jobs:
74 78 name: Cargo-lock
75 79 path: |
76 80 Cargo.lock
81 + library/Cargo.lock
77 82 src/tools/rustbook/Cargo.lock
78 83 retention-days: 1
79 84 - name: upload cargo-update log artifact for use in PR
@@ -119,7 +124,7 @@ jobs:
119 124 git config user.name github-actions
120 125 git config user.email github-actions@github.com
121 126 git switch --force-create cargo_update
122 - git add ./Cargo.lock ./src/tools/rustbook/Cargo.lock
127 + git add ./Cargo.lock ./library/Cargo.lock ./src/tools/rustbook/Cargo.lock
123 128 git commit --no-verify --file=commit.txt
124 129
125 130 - name: push