diff --git a/.github/workflows/check-update-types.yml b/.github/workflows/check-update-types.yml index d58299d..aca0175 100644 --- a/.github/workflows/check-update-types.yml +++ b/.github/workflows/check-update-types.yml @@ -36,8 +36,7 @@ jobs: # Fail if there are changes under chatlas/types and throw a useful error message - name: Check for changes run: | - git diff --exit-code chatlas/types - if [ $? -ne 0 ]; then - echo "Types are out of date. Please run 'make update-types' and commit the changes." + if [[ -n $(git diff chatlas/types) ]]; then + echo "::error::Types are out of date. Please run 'make update-types' and commit the changes." exit 1 fi