I recently added an
on: schedule: trigger to a workflow that has been working fine via its
on:push: trigger for some time. The workflow sends notifications to a couple of Slack channels via webhook URL stored in secrets. The schedule-triggered action fails to notify the Slack channels with the message
##[error]Cannot read property 'url' of undefined.
Here is an example of the failure:
This looks to me like the scheduled workflow is being blocked from accessing secrets, but I can’t find anything in the docs that tells me that should be the case. I’m seeing this in several repos, some of which use organization secrets, others that use repo secrets.
Is this a known issue that I am failing to find in my searching, or am I doing something wrong?