Skip to content

Commit 9559066

Browse files
committed
Improve dependabot
1 parent da21b3c commit 9559066

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ updates:
2020
day: monday
2121
time: "06:00"
2222
groups:
23-
cargo-deps:
23+
cargo-minor-patch:
2424
patterns:
2525
- '*'
26+
exclude-patterns:
27+
- shvproto
28+
- shvrpc
29+
update-types:
30+
- major

.github/workflows/rust.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ jobs:
122122
run: |
123123
[[ "$(grep '^version' Cargo.toml | head -n1)" =~ ([0-9]+\.[0-9]+\.)([0-9]+) ]]
124124
NEW_VERSION="${BASH_REMATCH[1]}$((BASH_REMATCH[2] + 1))"
125+
cargo install cargo-bump
125126
echo Bumping "${BASH_REMATCH[0]} -> $NEW_VERSION"
126-
sed -i "s/${BASH_REMATCH[0]}/$NEW_VERSION/" Cargo.toml
127+
BUMP_TYPE='patch'
128+
cargo bump "$BUMP_TYPE"
127129
if [[ -f Cargo.lock ]]; then
128130
cargo update
129131
fi

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "shvproto"
55
description = "Rust implementation of the SHV protocol"
66
license = "MIT"
77
repository = "https://github.com/silicon-heaven/libshvproto-rs"
8-
version = "6.0.1"
8+
version = "6.0.2"
99
edition = "2024"
1010

1111
[dependencies]

0 commit comments

Comments
 (0)