diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 44779651c7..62f5dcafa6 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -416,7 +416,9 @@ jobs: upload_linux: needs: test_linux - if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}} + if: | + (github.repository == 'IntelPython/dpctl') && + (github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')) runs-on: ubuntu-22.04 timeout-minutes: 20 strategy: @@ -453,7 +455,9 @@ jobs: upload_windows: needs: test_windows - if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}} + if: | + (github.repository == 'IntelPython/dpctl') && + (github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')) runs-on: windows-2019 timeout-minutes: 20 strategy: