create-release: make sed regex more strict

This commit is contained in:
Jörg Thalheim 2024-01-16 11:19:53 +01:00 committed by mergify[bot]
parent 36ffca82d2
commit da997c87c7

View File

@ -28,7 +28,7 @@ if [[ "$unpushed_commits" != "" ]]; then
echo -e "\nThere are unpushed changes, exiting:\n$unpushed_commits" >&2
exit 1
fi
sed -i -e "s!version = \".*\"\$!version = \"${version}\"!" pyproject.toml default.nix
sed -i -e "s!^version = \".*\"\$!version = \"${version}\"!" pyproject.toml default.nix
git add pyproject.toml default.nix
nix flake check -vL
nix develop -c pytest -s .