From 61fe81a34c5aadd081efee3e1e6f0036e25153f0 Mon Sep 17 00:00:00 2001 From: Carson Date: Mon, 9 Dec 2024 11:34:17 -0600 Subject: [PATCH] Fix err message --- .github/workflows/check-update-types.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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