diff --git a/.github/workflows/repo-maintenance.yaml b/.github/workflows/repo-maintenance.yaml index e4ca9b2129..ef4a2795c2 100644 --- a/.github/workflows/repo-maintenance.yaml +++ b/.github/workflows/repo-maintenance.yaml @@ -80,7 +80,7 @@ jobs: labels: bot cleanup_closed_branches: - if: github.repository == 'commaai/openpilot' + if: github.repository == 'commaai/openpilot' && github.event_name == 'pull_request' runs-on: ubuntu-latest permissions: contents: write