Add Fail if Version Mismatch in Release Action Test
All checks were successful
Run Tests on Code / run-tests (push) Successful in 5s
All checks were successful
Run Tests on Code / run-tests (push) Successful in 5s
This commit is contained in:
parent
c70ffecab6
commit
4b3eb9fbdf
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue