From e76433fe7fc14eb0bb8490109cccd1748eb6b936 Mon Sep 17 00:00:00 2001 From: spicy-sauce <yshirizli@gmail.com> Date: Wed, 13 Mar 2024 10:22:22 +0200 Subject: [PATCH] fix condition --- .github/workflows/generate-jsonschema.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/generate-jsonschema.yml b/.github/workflows/generate-jsonschema.yml index e45c84b3..d1bb7d7c 100644 --- a/.github/workflows/generate-jsonschema.yml +++ b/.github/workflows/generate-jsonschema.yml @@ -48,8 +48,7 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com git add . - - if git diff --cached --exit-code; then + if ! git diff --cached --exit-code; then git commit -m "update json schemas" git push fi