From 853c9ca5042294d40a611f8a2f0cb3150933f46e Mon Sep 17 00:00:00 2001 From: Sam Privett Date: Mon, 1 Sep 2025 11:31:19 -0700 Subject: [PATCH 1/2] Check what folder we're in --- .github/workflows/generate-bindings.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/generate-bindings.yml b/.github/workflows/generate-bindings.yml index c40ce867..081d504a 100644 --- a/.github/workflows/generate-bindings.yml +++ b/.github/workflows/generate-bindings.yml @@ -73,6 +73,7 @@ jobs: - name: Submit PR run: | + pwd if git diff --exit-code; then exit 0 fi From 9526f96e6708d709901e58a2c57da7f2dbe83999 Mon Sep 17 00:00:00 2001 From: Sam Privett Date: Mon, 1 Sep 2025 11:42:35 -0700 Subject: [PATCH 2/2] Make sure we're in the repo folder when running git diff. Additionally, make sure git knows this directory is safe --- .github/workflows/generate-bindings.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-bindings.yml b/.github/workflows/generate-bindings.yml index 081d504a..466b1761 100644 --- a/.github/workflows/generate-bindings.yml +++ b/.github/workflows/generate-bindings.yml @@ -73,7 +73,8 @@ jobs: - name: Submit PR run: | - pwd + cd $GITHUB_WORKSPACE + git config --global --add safe.directory $GITHUB_WORKSPACE if git diff --exit-code; then exit 0 fi