From 1ff0b4e935148cacd3a6fab645095c8a500c3370 Mon Sep 17 00:00:00 2001 From: Elango Cheran Date: Tue, 5 Nov 2024 10:39:16 -0800 Subject: [PATCH] Only run Maven cache workflow on the upstream repo --- .github/workflows/cache_retain.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cache_retain.yml b/.github/workflows/cache_retain.yml index 471d25a21..e0df6fbe9 100644 --- a/.github/workflows/cache_retain.yml +++ b/.github/workflows/cache_retain.yml @@ -30,6 +30,10 @@ jobs: retain-maven-cache: name: Run all tests with Maven runs-on: ubuntu-latest + # Only run this on the upstream repo. Otherwise, running in a person fork will cause + # Github to disable the personal fork copy of the workflow + # (Github complains about running a scheduled workflow on a repo with > 60 days of inactivity) + if: github.ref == 'refs/heads/main' && github.repository == 'unicode-org/unicodetools' steps: - name: Checkout and setup uses: actions/checkout@v2