From b7221238aab7ec661af855f48fe5015f304708ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwas=CC=81niewski?= Date: Thu, 8 Aug 2024 02:36:13 -0700 Subject: [PATCH] ci: run cache-repear only on main repo (#45940) Summary: This PR enables the `cache-repear.yml` only for the main repository. This is running constantly on forks creating lots of notifications and it's mostly needed only for the main repo. ![CleanShot 2024-08-08 at 10 06 38@2x](https://github.com/user-attachments/assets/51f7e208-05c9-4a02-982d-d746a717dc69) ## Changelog: [INTERNAL] [CHANGED] - Run `cache-repear.yml` only on main repo Pull Request resolved: https://github.com/facebook/react-native/pull/45940 Test Plan: CI GREEN Reviewed By: blakef Differential Revision: D60957003 Pulled By: cortinico fbshipit-source-id: 2f250d734688739a278095af8d860a54426604bf --- .github/workflows/cache-repear.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cache-repear.yml b/.github/workflows/cache-repear.yml index 9d3024a5c36..6147b6350ee 100644 --- a/.github/workflows/cache-repear.yml +++ b/.github/workflows/cache-repear.yml @@ -7,6 +7,7 @@ on: - cron: "0 0/2 * * 1-5" jobs: + if: github.repository == 'facebook/react-native' cache-cleaner: runs-on: ubuntu-latest env: