Skip to content

Commit fc59f0d

Browse files
authored
Only run Maven cache workflow on the upstream repo (#959)
1 parent 250884c commit fc59f0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/cache_retain.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
retain-maven-cache:
3131
name: Run all tests with Maven
3232
runs-on: ubuntu-latest
33+
# Only run this on the upstream repo. Otherwise, running in a person fork will cause
34+
# Github to disable the personal fork copy of the workflow
35+
# (Github complains about running a scheduled workflow on a repo with > 60 days of inactivity)
36+
if: github.ref == 'refs/heads/main' && github.repository == 'unicode-org/unicodetools'
3337
steps:
3438
- name: Checkout and setup
3539
uses: actions/checkout@v2

0 commit comments

Comments
 (0)