Add increment docs infra to increment-cargo-version (#6456)
This commit is contained in:
@ -32,6 +32,8 @@ readCargoVariable() {
|
||||
|
||||
# shellcheck disable=2207
|
||||
Cargo_tomls=($(find . -name Cargo.toml))
|
||||
# shellcheck disable=2207
|
||||
markdownFiles=($(find . -name "*.md"))
|
||||
|
||||
# Collect the name of all the internal crates
|
||||
crates=()
|
||||
@ -108,6 +110,15 @@ for Cargo_toml in "${Cargo_tomls[@]}"; do
|
||||
done
|
||||
done
|
||||
|
||||
# Update all the documentation references
|
||||
for file in "${markdownFiles[@]}"; do
|
||||
# Set new crate version
|
||||
(
|
||||
set -x
|
||||
sed -i "$file" -e "s/$currentVersion/$newVersion/g"
|
||||
)
|
||||
done
|
||||
|
||||
echo "$currentVersion -> $newVersion"
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user