From a3197188982b0d1dfcf9d0dca4aa49eed76c1031 Mon Sep 17 00:00:00 2001 From: Adnan Khan Date: Thu, 29 Aug 2024 10:55:10 -0400 Subject: [PATCH] Don't run branch deletion on fork PRs. --- .github/workflows/delete_staging_and_head_branches.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/delete_staging_and_head_branches.yaml b/.github/workflows/delete_staging_and_head_branches.yaml index 257366d4f41..fcc7a9b4ddc 100644 --- a/.github/workflows/delete_staging_and_head_branches.yaml +++ b/.github/workflows/delete_staging_and_head_branches.yaml @@ -10,6 +10,7 @@ on: jobs: delete-staging-and-head-branches: + if: ${{ !github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2