Skip to content

Commit 93b48bc

Browse files
authored
fix if clause in job skip logic (#3825)
1 parent eb1881f commit 93b48bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/compliance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
1616
check-license-compliance-cpu:
17-
if: github.repository_owner == 'deepset-ai'
17+
if: ${{ !github.event.pull_request.head.repo.fork }}
1818
name: Check CPU dependencies
1919
runs-on: ubuntu-latest
2020
steps:
@@ -58,7 +58,7 @@ jobs:
5858
channel: ${{ env.SLACK_ALERT_CHANNEL }}
5959

6060
check-license-compliance-gpu:
61-
if: github.repository_owner == 'deepset-ai'
61+
if: ${{ !github.event.pull_request.head.repo.fork }}
6262
name: Check GPU dependencies
6363
runs-on: ubuntu-latest
6464
steps:

0 commit comments

Comments
 (0)