From d613e433d54eccfdc89bab2850902921c691c3d1 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sat, 1 Jun 2024 00:53:36 +0200 Subject: [PATCH] Skip linting on pull requests for the same repository --- .github/workflows/lint.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5665547..737798e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,8 @@ on: [push, pull_request] jobs: clang-format: + # Skip building pull requests from the same repository + if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }} runs-on: ubuntu-latest steps: @@ -27,6 +29,8 @@ jobs: exit 1 editorconfig: + # Skip building pull requests from the same repository + if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }} runs-on: ubuntu-latest steps: