Skip to content

Commit

Permalink
Made version check actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakooo0 committed Dec 21, 2022
1 parent 25fa4f3 commit 24fd4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Check library version
if: github.event_name == 'release'
run: |
if [ "$(awk -F":" '{if ($1 == "version") {gsub(/ /, "", $2); print $2}}')" != "${{ github.event.release.tag_name }}" ]; then
if [ "$(awk -F":" '{if ($1 == "version") {gsub(/ /, "", $2); print $2}}' *.cabal)" != "${{ github.event.release.tag_name }}" ]; then
echo "::error file=action.yaml::Library version does not match release version."
exit 1
fi
Expand Down

0 comments on commit 24fd4b5

Please sign in to comment.