From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Thu, 26 Oct 2023 01:05:52 +0000 (-0700) Subject: Stops duplicated action runs against internal PRs (#4430) X-Git-Tag: v2.0.0-beta.1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fbe7f16f3f31bcc16d507be930fd6d6f487b9d6;p=thirdparty%2Fpaperless-ngx.git Stops duplicated action runs against internal PRs (#4430) --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c22e9f987..249da50a7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,13 @@ env: jobs: pre-commit: + # We want to run on external PRs, but not on our own internal PRs as they'll be run + # by the push to the branch. Without this if check, checks are duplicated since + # internal PRs match both the push and pull_request events. + if: + github.event_name == 'push' || github.event.pull_request.head.repo.full_name != + github.repository + name: Linting Checks runs-on: ubuntu-22.04 steps: