From 8255c2f800ed0a7629679c107156194a1aeb78b0 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 13 Jul 2021 17:47:14 +0200 Subject: [PATCH] Runing analysis only once for PR --- .github/workflows/analysis.yml | 1 + .github/workflows/tests.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 1924ffdf..fc1679cb 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -5,6 +5,7 @@ jobs: analysis: name: Static Analysis runs-on: ubuntu-latest + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 796d5b8e..65a3646f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,7 @@ on: [push, pull_request] jobs: tests: runs-on: ubuntu-latest + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository container: mcr.microsoft.com/dotnet/sdk:5.0 services: postgres: