Skip linting on pull requests for the same repository

main
Duncan Ogilvie 6 months ago
parent 7c828d8740
commit d613e433d5

@ -4,6 +4,8 @@ on: [push, pull_request]
jobs: jobs:
clang-format: 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 runs-on: ubuntu-latest
steps: steps:
@ -27,6 +29,8 @@ jobs:
exit 1 exit 1
editorconfig: 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 runs-on: ubuntu-latest
steps: steps:

Loading…
Cancel
Save