The reason for this is we are trying to read GITHUB_EVENT_PATH file which contains event payload, but the payload doesn't contain anything much in workflows scheduled like this. The file contains basically something like this only:
{
"schedule": "*/10 * * * *"
}
To fix this we should fallback to other ways of getting information for functions:
When you try to run
mix coveralls.github
in workflows that are scheduled usingcron
schedule (https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule) you get a following error:The reason for this is we are trying to read
GITHUB_EVENT_PATH
file which contains event payload, but the payload doesn't contain anything much in workflows scheduled like this. The file contains basically something like this only:To fix this we should fallback to other ways of getting information for functions:
get_pr_id
get_committer_name
get_sha