Update .forgejo/workflows/build+release.yml
All checks were successful
Run Tests on Code / test (push) Successful in 1m6s

This commit is contained in:
Neshura 2023-12-20 21:27:22 +00:00
parent 46c5b39d6b
commit 197b10cccf

View file

@ -35,8 +35,7 @@ jobs:
- -
name: Check if Version in package.json matches Tag name: Check if Version in package.json matches Tag
run: | run: |
echo "Test" VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" | tr -d " " )
VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" )
if test $VERSION != "${{ github.ref_name }}"; then if test $VERSION != "${{ github.ref_name }}"; then
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'"; echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
exit 1 exit 1