Exit when versions don't match
commit3ad9d5f725c4a061708c8474f8ac90fd83cf8e07
authoriko <ilyakooo0@gmail.com>
dateTue 28 Dec 2021, 19:23 (5 years ago)
parente012452
.github/workflows/github-actions-image.yaml+2
@@ -17,6 +17,7 @@ jobs:
1717 run: |
1818 if [ "$(awk -F ':' '/^version/ {gsub(/ /, "", $2); print $2}' compaREST.cabal)" != "0.0.0.1" ]; then
1919 echo "::error file=compaREST.cabal::Library version does not match release version."
20+ exit 1
2021 fi
2122
2223 - name: Check docker tag
@@ -24,6 +25,7 @@ jobs:
2425 run: |
2526 if [ "$(yq eval '.runs.image' action.yaml | awk -F ':' '{print $NF}')" != "latet" ]; then
2627 echo "::error file=action.yaml::Action docker tag does not match release tag."
28+ exit 1
2729 fi
2830
2931 Linux: