Runing analysis only once for PR

This commit is contained in:
Zoe Roux 2021-07-13 17:47:14 +02:00
parent 31da4bb692
commit 8255c2f800
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ jobs:
analysis: analysis:
name: Static Analysis name: Static Analysis
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:

View File

@ -5,6 +5,7 @@ on: [push, pull_request]
jobs: jobs:
tests: tests:
runs-on: ubuntu-latest 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 container: mcr.microsoft.com/dotnet/sdk:5.0
services: services:
postgres: postgres: