diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9934313..2f54d73 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -28,6 +28,10 @@ env: jobs: prepare: name: Prepare (get envs) + # A push already builds updates to PRs from this repository. + if: >- + github.event.action != 'synchronize' || + github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest outputs: envs: ${{ steps.envs.outputs.envs }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1036d76..328315f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,6 +11,10 @@ concurrency: jobs: validate-json: name: Validate JSON + # A push already checks updates to PRs from this repository. + if: >- + github.event.action != 'synchronize' || + github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - name: Checkout repository @@ -57,6 +61,9 @@ jobs: cpplint: name: cpplint + if: >- + github.event.action != 'synchronize' || + github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - name: Checkout