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.
This commit is contained in:
parent
36500b4451
commit
b3b57518a0
|
@ -9,6 +9,16 @@ main () {
|
||||||
for crate in "internals" "hashes" "bitcoin"; do
|
for crate in "internals" "hashes" "bitcoin"; do
|
||||||
if release_changes $crate; then
|
if release_changes $crate; then
|
||||||
echo "$crate has changes implying this is a release PR, checking if we can publish ..."
|
echo "$crate has changes implying this is a release PR, checking if we can publish ..."
|
||||||
|
|
||||||
|
# Check if there is any mention of NEXT_RELEASE which means the
|
||||||
|
# next version number should be filled in.
|
||||||
|
if grep -qr NEXT_RELEASE ./$crate; then
|
||||||
|
echo Version number needs to be filled in following places:
|
||||||
|
grep -r NEXT_RELEASE ./$crate
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Then try to dry-run cargo publish
|
||||||
publish_dry_run $crate
|
publish_dry_run $crate
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue