Skip to content

Commit

Permalink
Fix err message
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Dec 9, 2024
1 parent e551568 commit 61fe81a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/check-update-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 61fe81a

Please sign in to comment.