Explicitly specificy old version for cargo update (#9621)
This commit is contained in:
parent
6793c10860
commit
5402434218
|
@ -8,9 +8,9 @@ commit_range="$(git merge-base HEAD origin/master)..HEAD"
|
||||||
parsed_update_args="$(
|
parsed_update_args="$(
|
||||||
git log "$commit_range" --author "dependabot-preview" --oneline -n1 |
|
git log "$commit_range" --author "dependabot-preview" --oneline -n1 |
|
||||||
grep -o 'Bump.*$' |
|
grep -o 'Bump.*$' |
|
||||||
sed -r 's/Bump ([^ ]+) from [^ ]+ to ([^ ]+)/-p \1 --precise \2/'
|
sed -r 's/Bump ([^ ]+) from ([^ ]+) to ([^ ]+)/-p \1:\2 --precise \3/'
|
||||||
)"
|
)"
|
||||||
package=$(echo "$parsed_update_args" | awk '{print $2}')
|
package=$(echo "$parsed_update_args" | awk '{print $2}' | grep -o "^[^:]*")
|
||||||
if [[ -n $parsed_update_args ]]; then
|
if [[ -n $parsed_update_args ]]; then
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
_ scripts/cargo-for-all-lock-files.sh \
|
_ scripts/cargo-for-all-lock-files.sh \
|
||||||
|
|
Loading…
Reference in New Issue