diff options
author | Nicola Soranzo <nicola.soranzo@earlham.ac.uk> | 2023-02-04 04:00:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 20:00:45 -0800 |
commit | ab35ce43ce04f3b50af67238e59a7d95f91cbd1d (patch) | |
tree | 6b9dd325965e9af1b854b742412a0f76286765ec | |
parent | f355ddb90153652fa7952e643eeb8b1a3b7c2e62 (diff) | |
download | virtualenv-ab35ce43ce04f3b50af67238e59a7d95f91cbd1d.tar.gz |
Don't run scheduled workflow jobs on forks (#2490)
-rw-r--r-- | .github/workflows/check.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6507199..6524a6b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -12,6 +12,7 @@ concurrency: jobs: test: name: test ${{ matrix.py }} - ${{ matrix.os }} + if: github.event_name != 'schedule' || github.repository_owner == 'pypa' runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -137,6 +138,7 @@ jobs: check: name: ${{ matrix.tox_env }} - ${{ matrix.os }} + if: github.event_name != 'schedule' || github.repository_owner == 'pypa' runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -169,7 +171,6 @@ jobs: UPGRADE_ADVISORY: "yes" publish: - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') needs: [check, coverage] runs-on: ubuntu-22.04 steps: @@ -185,6 +186,7 @@ jobs: - name: Build sdist and wheel run: python -m build -s -w . -o dist - name: Publish to PyPi + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository_owner == 'pypa' uses: pypa/gh-action-pypi-publish@v1.6.4 with: skip_existing: true |