From ba7bf6b85e416bfc2f3c73040f63390fee8f67d9 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Mon, 9 Sep 2024 16:27:21 -0400 Subject: [PATCH] dont cleanup cache in forks (#3214) Signed-off-by: Alex Goodman --- .github/workflows/validations.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validations.yaml b/.github/workflows/validations.yaml index 0ebca5c82..0413e1637 100644 --- a/.github/workflows/validations.yaml +++ b/.github/workflows/validations.yaml @@ -206,7 +206,7 @@ jobs: Cleanup-Cache: name: "Cleanup snapshot cache" - if: always() + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-20.04 permissions: actions: write