From 93b48bc334e39db28badb2e102e7dfac26b4ce82 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Sun, 8 Jan 2023 18:20:35 +0100 Subject: [PATCH] fix if clause in job skip logic (#3825) --- .github/workflows/compliance.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml index 7a8e974c5..db4348cae 100644 --- a/.github/workflows/compliance.yml +++ b/.github/workflows/compliance.yml @@ -14,7 +14,7 @@ env: jobs: check-license-compliance-cpu: - if: github.repository_owner == 'deepset-ai' + if: ${{ !github.event.pull_request.head.repo.fork }} name: Check CPU dependencies runs-on: ubuntu-latest steps: @@ -58,7 +58,7 @@ jobs: channel: ${{ env.SLACK_ALERT_CHANNEL }} check-license-compliance-gpu: - if: github.repository_owner == 'deepset-ai' + if: ${{ !github.event.pull_request.head.repo.fork }} name: Check GPU dependencies runs-on: ubuntu-latest steps: