Skip to content

Commit

Permalink
Merge pull request #358 from py-cov-action/build-default-branch-on-sc…
Browse files Browse the repository at this point in the history
…hedule
  • Loading branch information
ewjoachim authored Feb 7, 2024
2 parents a048577 + 1288692 commit 9af72a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coverage_comment/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def find_activity(
if event_name == "workflow_run":
return "post_comment"

if event_name == "push" and is_default_branch:
if (event_name == "push" and is_default_branch) or event_name == "schedule":
return "save_coverage_data_files"

if event_name not in {"pull_request", "push"}:
Expand Down
6 changes: 3 additions & 3 deletions coverage_comment/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def action(
)
except activity_module.ActivityNotFound:
log.error(
'This action has only been designed to work for "pull_request", "push" '
f'or "workflow_run" actions, not "{event_name}". Because there are security '
"implications. If you have a different usecase, please open an issue, "
'This action has only been designed to work for "pull_request", "push", '
f'"workflow_run" or "schedule" actions, not "{event_name}". Because there '
"are security implications. If you have a different usecase, please open an issue, "
"we'll be glad to add compatibility."
)
return 1
Expand Down

0 comments on commit 9af72a0

Please sign in to comment.