From 8e98f06a9b10578b9c4a6439cc21d5aa71337699 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 15 Nov 2022 12:14:59 -0600 Subject: [PATCH] Exclude running upload steps for forked repo --- .github/workflows/conda-package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 753b391c7d78..e5ef4e59b753 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -417,7 +417,7 @@ jobs: needs: test_linux if: | - !github.event.pull_request.head.repo.fork && + (github.repository == 'IntelPython/dpnp') && (github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')) runs-on: ubuntu-latest @@ -456,7 +456,7 @@ jobs: needs: test_windows if: | - !github.event.pull_request.head.repo.fork && !github.event.push.repository.fork && + (github.repository == 'IntelPython/dpnp') && (github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')) runs-on: windows-latest