From e8e4d86f42aab0fe1a011f8496b9cb53e1a74033 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:20:20 +0530 Subject: [PATCH] Do not allow triggering PyPI releases manually --- .github/workflows/wheel_tests_and_release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wheel_tests_and_release.yml b/.github/workflows/wheel_tests_and_release.yml index 611b35e1..6108c3a5 100644 --- a/.github/workflows/wheel_tests_and_release.yml +++ b/.github/workflows/wheel_tests_and_release.yml @@ -181,10 +181,8 @@ jobs: build_macos_wheels, build_windows_wheels, ] - # Run only on tags pushed to the repository or when triggered manually - if: >- - github.repository == 'PyWavelets/pywt' && (startsWith(github.ref, 'refs/tags/v') || - (github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true')) + # Run only on tags pushed to the repository + if: github.repository == 'PyWavelets/pywt' && startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2