Skip to content

Commit 7184c31

Browse files
committed
Exclude running upload steps for forked repo
1 parent 37aaff2 commit 7184c31

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ env:
1515
VER_SCRIPT2: "d = j['dpnp'][0]; print('='.join((d[s] for s in ('version', 'build'))))"
1616

1717
jobs:
18+
printJob:
19+
name: Print event
20+
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Dump GitHub context
25+
env:
26+
GITHUB_CONTEXT: ${{ toJson(github) }}
27+
run: |
28+
echo "$GITHUB_CONTEXT"
29+
30+
1831
build_linux:
1932
runs-on: ubuntu-latest
2033

@@ -417,7 +430,7 @@ jobs:
417430
needs: test_linux
418431

419432
if: |
420-
!github.event.pull_request.head.repo.fork &&
433+
(github.repository == 'IntelPython/dpnp') &&
421434
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
422435
423436
runs-on: ubuntu-latest
@@ -456,7 +469,7 @@ jobs:
456469
needs: test_windows
457470

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

0 commit comments

Comments
 (0)