Skip to content

Commit 8e98f06

Browse files
committed
Exclude running upload steps for forked repo
1 parent 37aaff2 commit 8e98f06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ jobs:
417417
needs: test_linux
418418

419419
if: |
420-
!github.event.pull_request.head.repo.fork &&
420+
(github.repository == 'IntelPython/dpnp') &&
421421
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
422422
423423
runs-on: ubuntu-latest
@@ -456,7 +456,7 @@ jobs:
456456
needs: test_windows
457457

458458
if: |
459-
!github.event.pull_request.head.repo.fork && !github.event.push.repository.fork &&
459+
(github.repository == 'IntelPython/dpnp') &&
460460
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
461461
462462
runs-on: windows-latest

0 commit comments

Comments
 (0)