Skip to content

Commit 6ac3a8f

Browse files
authored
Merge pull request #2059 from IntelPython/skip-upload-job-in-forked-repo
Disable upload job from forked repo
2 parents 3e74087 + 1719a00 commit 6ac3a8f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ jobs:
416416
417417
upload_linux:
418418
needs: test_linux
419-
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}}
419+
if: |
420+
(github.repository == 'IntelPython/dpctl') &&
421+
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
420422
runs-on: ubuntu-22.04
421423
timeout-minutes: 20
422424
strategy:
@@ -453,7 +455,9 @@ jobs:
453455

454456
upload_windows:
455457
needs: test_windows
456-
if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}}
458+
if: |
459+
(github.repository == 'IntelPython/dpctl') &&
460+
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
457461
runs-on: windows-2019
458462
timeout-minutes: 20
459463
strategy:

0 commit comments

Comments
 (0)