Merge pull request #967 from fluxcd/ci/tweak-if-cond

Fix detection of PRs from forks
This commit is contained in:
Hidde Beydals 2021-02-23 10:24:25 +01:00 committed by GitHub
commit bb9eca7232
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ on:
jobs:
github:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'fluxcd' }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout
uses: actions/checkout@v2

View file

@ -24,7 +24,7 @@ jobs:
snyk:
name: Snyk
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'fluxcd' }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v2
- name: Run Snyk to check for vulnerabilities