From aae6c6028ce51f87cc42bd50dab5253159fc1fd3 Mon Sep 17 00:00:00 2001 From: Jaro-c <75870284+Jaro-c@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:36:20 -0500 Subject: [PATCH] ci: run the empty-diff gate only on pull requests The reusable reads the pull request base ref and fails closed when it is missing. That is right inside a pull request and wrong on a push: this workflow also runs on push to main, where there is no pull request in the payload, so every push to main has failed since the caller landed. Guarding the job on the event skips it on push instead of failing. A skipped job does not fail the run, and it does not weaken the gate for required-check purposes either, because a required check only gates the merge of a pull request, where the job still runs. Signed-off-by: Jaro-c <75870284+Jaro-c@users.noreply.github.com> --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d762fa..2d122e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,4 +19,5 @@ permissions: jobs: empty-diff: + if: github.event_name == 'pull_request' uses: Glyndor/.github/.github/workflows/empty-diff.yml@7eb2c699bed5e49b7974ff9b0e613712d5da88cb # v1.14.0 \ No newline at end of file