Skip to content

Commit b3b5751

Browse files
committed
ci: Check for remaining NEXT_RELEASE in the release script
The intention here is that we can use the deprecation tag `#[deprecated(since = "NEXT_RELEASE")]` and fill in the version number at release time.
1 parent 36500b4 commit b3b5751

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contrib/release.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ main () {
99
for crate in "internals" "hashes" "bitcoin"; do
1010
if release_changes $crate; then
1111
echo "$crate has changes implying this is a release PR, checking if we can publish ..."
12+
13+
# Check if there is any mention of NEXT_RELEASE which means the
14+
# next version number should be filled in.
15+
if grep -qr NEXT_RELEASE ./$crate; then
16+
echo Version number needs to be filled in following places:
17+
grep -r NEXT_RELEASE ./$crate
18+
exit 1
19+
fi
20+
21+
# Then try to dry-run cargo publish
1222
publish_dry_run $crate
1323
fi
1424
done

0 commit comments

Comments
 (0)