From a6e1a8ad018c2a9b14a2a192e2395ba14161d5df Mon Sep 17 00:00:00 2001 From: Angelina Uno-Antonison Date: Thu, 22 Jun 2023 15:56:07 +0000 Subject: [PATCH] Experimenting with a conditional to prevent running jobs multiple times on push and pull requests yet still run for PR's for forks. --- .github/workflows/common-static-analysis.yml | 1 + .github/workflows/nodejs.yml | 1 + .github/workflows/python.yml | 2 ++ .github/workflows/system-tests.yml | 1 + 4 files changed, 5 insertions(+) diff --git a/.github/workflows/common-static-analysis.yml b/.github/workflows/common-static-analysis.yml index bc2ec2b8..0516b9b9 100644 --- a/.github/workflows/common-static-analysis.yml +++ b/.github/workflows/common-static-analysis.yml @@ -19,6 +19,7 @@ env: jobs: docker-shell-markdown-static-analysis: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 0dd1c94d..32b2a0a6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -10,6 +10,7 @@ jobs: nodejs-ci: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name strategy: matrix: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 2105ad53..361d8d78 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -11,6 +11,8 @@ jobs: python-ci: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name + strategy: fail-fast: false matrix: diff --git a/.github/workflows/system-tests.yml b/.github/workflows/system-tests.yml index da0774d4..0a9a2f57 100644 --- a/.github/workflows/system-tests.yml +++ b/.github/workflows/system-tests.yml @@ -5,6 +5,7 @@ on: [push, pull_request, workflow_dispatch] jobs: system-tests: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v3