@@ -10,16 +10,17 @@ on:
1010
1111jobs:
1212 check_versions:
13− if: github.event_name == 'release'
1413 runs-on: ubuntu-latest
1514 steps:
1615 - name: Check library version
16+ if: github.event_name == 'release'
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."
2020 fi
2121
2222 - name: Check docker tag
23+ if: github.event_name == 'release'
2324 run: |
2425 if [ "$(yq eval '.runs.image' action.yaml | awk -F ':' '{print $NF}')" != "latet" ]; then
2526 echo "::error file=action.yaml::Action docker tag does not match release tag."