Skip to content

Commit 9af72a0

Browse files
authored
Merge pull request #358 from py-cov-action/build-default-branch-on-schedule
2 parents a048577 + 1288692 commit 9af72a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

coverage_comment/activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def find_activity(
2020
if event_name == "workflow_run":
2121
return "post_comment"
2222

23-
if event_name == "push" and is_default_branch:
23+
if (event_name == "push" and is_default_branch) or event_name == "schedule":
2424
return "save_coverage_data_files"
2525

2626
if event_name not in {"pull_request", "push"}:

coverage_comment/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def action(
7777
)
7878
except activity_module.ActivityNotFound:
7979
log.error(
80-
'This action has only been designed to work for "pull_request", "push" '
81-
f'or "workflow_run" actions, not "{event_name}". Because there are security '
82-
"implications. If you have a different usecase, please open an issue, "
80+
'This action has only been designed to work for "pull_request", "push", '
81+
f'"workflow_run" or "schedule" actions, not "{event_name}". Because there '
82+
"are security implications. If you have a different usecase, please open an issue, "
8383
"we'll be glad to add compatibility."
8484
)
8585
return 1

0 commit comments

Comments
 (0)