ICU-22920 Only run Maven cache workflow on the upstream repo

See #3263
This commit is contained in:
Elango Cheran 2024-11-05 22:49:31 +00:00
parent 8d86ca142e
commit 842899d81a

View file

@ -36,6 +36,10 @@ jobs:
retain-maven-cache:
name: Run all tests with Maven
runs-on: ubuntu-22.04 # Updated in BRS
# Only run this on the upstream repo. Otherwise, running in a personal 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1