File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,12 +21,16 @@ concurrency:
2121jobs :
2222 status :
2323 runs-on : ubuntu-latest
24- # Scheduled runs always proceed. workflow_run runs only when the triggering
25- # build was a push to master (i.e. one that republished smelt.json).
24+ # Restrict to the canonical repo, since scheduled (cron) triggers fire on
25+ # every fork's default branch too, regardless of push activity there.
26+ # Beyond that: scheduled runs always proceed, while workflow_run runs only
27+ # when the triggering build was a push to master (i.e. one that
28+ # republished smelt.json).
2629 if : >-
27- github.event_name != 'workflow_run' ||
28- (github.event.workflow_run.event == 'push' &&
29- github.event.workflow_run.head_branch == 'master')
30+ github.repository == 'scijava/pom-scijava' &&
31+ (github.event_name != 'workflow_run' ||
32+ (github.event.workflow_run.event == 'push' &&
33+ github.event.workflow_run.head_branch == 'master'))
3034 permissions :
3135 actions : write # needed to delete and re-save caches
3236
You can’t perform that action at this time.
0 commit comments