Schedule workflows missing

Hi all,

Scheduled workflows show up and run fine in this public repo: https://github.com/amio/cron/actions

But when I fork it, they don’t show up at all: https://github.com/rayshan/cron/actions

I also tried to make a repo and create workflow files from scratch, and they also don’t show up.

Maybe it has something to do with the workflows being scheduled, or something weird with my account?

1 Like

@rayshan ,

Thanks for reporting this.

I have tested, and I can reproduce the same issue.

I found that only if trigger any one workflow to run at least once on the fork repository, then the Schedule workflow can start to work as expected.

I also have reported this issue to the appropriate engineering team, they will evaluate and investigate the issue. If they have any update, I will notify you in time.

1 Like

@rayshan ,

I got some explanations from the appropriate engineers:

Right now we only sync schedules on pushes. So when a repo is forked, and there are no pushes after launch is installed there, workflows with existing schedules that may exist don’t run automatically. The workaround is to push something to trigger them.

This also explain what I have mentioned that only if trigger any one workflow to run at least once on the fork repository, then the Schedule workflow can start to work as expected. 

In addition, the engineers are considering to sync schedules also in the installation event (when the launch app is installed in the repo). That will create schedules if there are existing workflow files with cron schedules.

Hi!

I think we might be getting an issue at https://github.com/rubygems/rubygems. I added a scheduled workflow, but it just won’t run.

So, if I understood correctly, a direct push to the master branch would trigger it? And then it would start working? That’s unfortunate because we never push to the master branch, but I guess we could do it if that would fix the issue.

Thanks a lot!

The problem is still not fixed…

However, thanks a lot for the workaround!

Just a precision: a push on the repo is not enough, you have to edit the workflow file

I can’t seem to get it to run, tried to push a workflow multiple times to the master branch. It just won’t pick up the schedule.

Any ideas?

Edit: 2 minutes after writing this post it started running out of the blue. It appears to me that it takes while before schedules actions run at all in a new repo