From 9439b9102c455613b9e3cd9b01b787c07885fe31 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Wed, 8 May 2024 05:32:16 +0100 Subject: [PATCH] Don't autobuild on fork PR --- .github/workflows/lint_and_test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index fdecb55..6303744 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -64,4 +64,6 @@ jobs: with: commit_message: Apply auto-build changes - - run: (git diff --quiet HEAD -- 2>/dev/null && echo "No uncommitted changes" || (echo "Error: Uncommitted changes found." && exit 1)) \ No newline at end of file + - run: | + (git diff --quiet HEAD -- 2>/dev/null && echo "No uncommitted changes" \ + || (echo "Error - Uncommitted changes found." && git --no-pager diff HEAD && exit 1)) \ No newline at end of file