From 53f29957fd1686a6213a7e4381a2db61ddf1bbe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= Date: Thu, 17 Jun 2021 19:05:52 +0200 Subject: [PATCH] CI: GitHub: don't fail pushing PyPI releases from forks ...and also unify the condition with what syntax that the Docker build job is using. Change-Id: Ia6e3fe308093bac144441f4d9a33df93ffdca06f --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c68ff81a..4288cdf71 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: pypi: needs: build - if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') }} + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'Telecominfraproject' name: PyPI packaging runs-on: ubuntu-latest steps: