diff --git a/.github/workflows/github-actions-image.yaml b/.github/workflows/github-actions-image.yaml index 2d1026f..b4b21b9 100644 --- a/.github/workflows/github-actions-image.yaml +++ b/.github/workflows/github-actions-image.yaml @@ -42,7 +42,7 @@ jobs: - name: Check library version if: github.event_name == 'release' run: | - if [ "$(awk -F ':' '/^version/ {gsub(/ /, "", $2); print $2}' compaREST.cabal)" != "0.0.0.1" ]; then + if [ "$(awk -F ':' '/^version/ {gsub(/ /, "", $2); print $2}' compaREST.cabal)" != "${{ github.event.release.tag_name }}" ]; then echo "::error file=compaREST.cabal::Library version does not match release version." exit 1 fi @@ -50,7 +50,7 @@ jobs: - name: Check docker tag if: github.event_name == 'release' run: | - if [ "$(yq eval '.runs.image' action.yaml | awk -F ':' '{print $NF}')" != "latet" ]; then + if [ "$(yq eval '.runs.image' action.yaml | awk -F ':' '{print $NF}')" != "${{ github.event.release.tag_name }}" ]; then echo "::error file=action.yaml::Action docker tag does not match release tag." exit 1 fi diff --git a/policeman.json b/policeman.json index 4c0e935..4caaa13 100644 --- a/policeman.json +++ b/policeman.json @@ -1,5 +1,7 @@ [{ "file": "compaREST.cabal", "title": "👮 Policeman", - "annotation_level": "notice" + "annotation_level": "notice", + "start-line": 0, + "end_lins": 0 }] \ No newline at end of file