diff --git a/.github/workflows/add_to_octokit_project.yml b/.github/workflows/add_to_octokit_project.yml index 0ac7fd7b4..750dcf3bf 100644 --- a/.github/workflows/add_to_octokit_project.yml +++ b/.github/workflows/add_to_octokit_project.yml @@ -8,6 +8,7 @@ on: jobs: add-to-project: + if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} name: Add issue to project runs-on: ubuntu-latest continue-on-error: true diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0119b4999..fe50a124f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -10,6 +10,7 @@ on: jobs: CodeQL-Build: + if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} # CodeQL runs on ubuntu-latest and windows-latest runs-on: ubuntu-latest diff --git a/.github/workflows/immediate-response.yml b/.github/workflows/immediate-response.yml index e8bb8ee5b..fd40e2255 100644 --- a/.github/workflows/immediate-response.yml +++ b/.github/workflows/immediate-response.yml @@ -11,7 +11,7 @@ on: - opened jobs: respond-to-issue: - if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }} + if: ${{ (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && (github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'github-actions[bot]' && github.actor != 'octokitbot') }} runs-on: ubuntu-latest steps: - name: Determine issue or PR number diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 042196c8c..650e9c1a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,7 @@ name: Test - synchronize jobs: test_matrix: + if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest strategy: matrix: @@ -37,4 +38,4 @@ jobs: cache: npm - run: npm ci - run: npm run lint - if: ${{ always() }} + if: ${{ (github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository) && (always()) }}