diff --git a/.github/workflows/ci-system-upgrade_tools_and_clean.yml b/.github/workflows/ci-system-upgrade_tools_and_clean.yml index 7d23d5718c..fc35703948 100644 --- a/.github/workflows/ci-system-upgrade_tools_and_clean.yml +++ b/.github/workflows/ci-system-upgrade_tools_and_clean.yml @@ -17,7 +17,9 @@ concurrency: jobs: upgrade_tools: - if: ${{ contains(github.event.label.name, 'ci:upgrade_tools') || contains(github.event_name, 'schedule') }}  + if: | + (github.event_name == 'pull_request' && github.event.label.name == 'ci:upgrade_tools') || + contains(github.event_name, 'schedule') name: Upgrade tools runs-on: [self-hosted, iOS]