From dfb6fbc862e17b10ce67b55facc980ba889c963a Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Tue, 30 Jul 2024 00:29:37 +0530 Subject: [PATCH] Update error condition --- .github/workflows/pr-builder.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 5910e4f..13fe145 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -42,8 +42,7 @@ jobs: - name: Install dependencies run: | yarn - git diff --exit-code > /dev/null - if [ $? -ne 0 ]; then + if ! git diff --exit-code > /dev/null 2>&1; then echo "ERR! There are modified files after running yarn." exit 1 fi