on master help sign in
move things
e012452iko
.github/workflows/github-actions-image.yaml+2−1
@@ -10,16 +10,17 @@ on:
10
10
11jobs:
11jobs:
12 check_versions:
12 check_versions:
13− if: github.event_name == 'release'
14 runs-on: ubuntu-latest
13 runs-on: ubuntu-latest
15 steps:
14 steps:
16 - name: Check library version
15 - name: Check library version
16+ if: github.event_name == 'release'
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 fi
20 fi
21
21
22 - name: Check docker tag
22 - name: Check docker tag
23+ if: github.event_name == 'release'
23 run: |
24 run: |
24 if [ "$(yq eval '.runs.image' action.yaml | awk -F ':' '{print $NF}')" != "latet" ]; then
25 if [ "$(yq eval '.runs.image' action.yaml | awk -F ':' '{print $NF}')" != "latet" ]; then
25 echo "::error file=action.yaml::Action docker tag does not match release tag."
26 echo "::error file=action.yaml::Action docker tag does not match release tag."