From 282d7133fc00aaeceb038f059a8705bb45361849 Mon Sep 17 00:00:00 2001 From: aignas <240938+aignas@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:21:01 +0900 Subject: [PATCH] Get the logic of thi if statement right --- .github/workflows/examples_build_file_generation.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples_build_file_generation.yaml b/.github/workflows/examples_build_file_generation.yaml index 9bb1c524fa..f8c2d2e662 100644 --- a/.github/workflows/examples_build_file_generation.yaml +++ b/.github/workflows/examples_build_file_generation.yaml @@ -26,7 +26,8 @@ jobs: - name: Update gazelle manifest working-directory: examples/build_file_generation run: | - if ! git diff --exit-code gazelle_python.yaml >/dev/null; then exit 0; fi + # If there are no changes, git diff will exit with 0 + if git diff --exit-code gazelle_python.yaml >/dev/null; then exit 0; fi git config --global user.email "bot@example.com" git config --global user.name "GH action" git add gazelle_python.yaml