on master help sign in
Exit when versions don't match
3ad9d5fiko
.github/workflows/github-actions-image.yaml+2
@@ -17,6 +17,7 @@ jobs:
17 run: |
17 run: |
18 if [ "$(awk -F ':' '/^version/ {gsub(/ /, "", $2); print $2}' compaREST.cabal)" != "0.0.0.1" ]; then
18 if [ "$(awk -F ':' '/^version/ {gsub(/ /, "", $2); print $2}' compaREST.cabal)" != "0.0.0.1" ]; then
19 echo "::error file=compaREST.cabal::Library version does not match release version."
19 echo "::error file=compaREST.cabal::Library version does not match release version."
20+ exit 1
20 fi
21 fi
21
22
22 - name: Check docker tag
23 - name: Check docker tag
@@ -24,6 +25,7 @@ jobs:
24 run: |
25 run: |
25 if [ "$(yq eval '.runs.image' action.yaml | awk -F ':' '{print $NF}')" != "latet" ]; then
26 if [ "$(yq eval '.runs.image' action.yaml | awk -F ':' '{print $NF}')" != "latet" ]; then
26 echo "::error file=action.yaml::Action docker tag does not match release tag."
27 echo "::error file=action.yaml::Action docker tag does not match release tag."
28+ exit 1
27 fi
29 fi
28
30
29 Linux:
31 Linux: