Add Fail if Version Mismatch in Release Action Test
All checks were successful
Run Tests on Code / run-tests (push) Successful in 5s

This commit is contained in:
Neshura 2023-11-17 19:09:04 +01:00
parent c70ffecab6
commit 4b3eb9fbdf
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -22,6 +22,7 @@ jobs:
VERSION=$(cat src-tauri/Cargo.toml | grep -E "(^|\|)version =" | cut -f2- -d= | tr -d \" | tr -d " ")
if test $VERSION != "${{ github.ref_name }}"; then
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
exit 1
else
echo "Version is: '$VERSION'";
fi