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:
Steven Roose 2023-04-10 21:15:25 +01:00
parent 36500b4451
commit b3b57518a0
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,16 @@ main () {
for crate in "internals" "hashes" "bitcoin"; do
if release_changes $crate; then
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
fi
done