From a4ecb059221a114e739a84319c8761a56bf4c8a2 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 26 Nov 2026 14:07:27 +0000 Subject: [PATCH] Don't submit an auto-update PR if upstream changes don't affect us Upstream PHP's docs repos can change regularly in ways which don't affect the output of Safe's generated files (eg changes to functions which don't have Safe wrappers) --- .github/workflows/auto-regenerate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-regenerate.yml b/.github/workflows/auto-regenerate.yml index 91775bfe..ec360699 100644 --- a/.github/workflows/auto-regenerate.yml +++ b/.github/workflows/auto-regenerate.yml @@ -43,7 +43,7 @@ jobs: - name: "Check for differences" id: diff - run: "git diff --exit-code && (echo diff=no-diff >> $GITHUB_OUTPUT) || (echo diff=diff >> $GITHUB_OUTPUT)" + run: "git diff --exit-code -- . ':(exclude)generator/versions.json' && (echo diff=no-diff >> $GITHUB_OUTPUT) || (echo diff=diff >> $GITHUB_OUTPUT)" - name: "Create a pr if the files are different" if: "${{ steps.diff.outputs.diff == 'diff' }}"