Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 6

Workflow runs on `issues` trigger but not on `schedule` trigger

Solved! Go to Solution.

The "on" section of my workflow file looks like this:

 

on:
  schedule:
    - cron: '00 * * * *'
  issues:
    types: [opened, reopened]

 

The workflow gets run on the "issues" trigger, but does not get run on the "schedule" trigger, as you can see from looking at the history here: https://github.com/bcbi/CompatHelper.jl/actions

 

My full workflow file is here: https://github.com/bcbi/CompatHelper.jl/blob/master/.github/workflows/CompatHelper.yml

 

Now here is the weird part. There is a different repository that has the same exact workflow file, but the workflow runs correctly on both the `issues` and `schedule` triggers in that repository: https://github.com/JuliaImages/Images.jl/actions

 

Here is the workflow file for that repository: https://github.com/JuliaImages/Images.jl/blob/master/.github/workflows/CompatHelper.yml

 

In particular, notice that the workflow file in the Images.jl repository has the following "on" section:

on:
  schedule:
    - cron: '00 * * * *'
  issues:
    types: [opened, reopened]
5 Replies
Highlighted
Pilot Lvl 2
Message 2 of 6

Re: Workflow runs on `issues` trigger but not on `schedule` trigger

- cron: 0 * * * *
Highlighted
Copilot Lvl 3
Message 3 of 6

Re: Workflow runs on `issues` trigger but not on `schedule` trigger

Well, here is the weird part. There is a different repository that has the same exact workflow file, but the workflow runs correctly on both the `issues` and `schedule` triggers in that repository: https://github.com/JuliaImages/Images.jl/actions

 

Here is the workflow file for that repository: https://github.com/JuliaImages/Images.jl/blob/master/.github/workflows/CompatHelper.yml

 

In particular, notice that the Images.jl repository has the following "on" section:

on:
  schedule:
    - cron: '00 * * * *'
  issues:
    types: [opened, reopened]

 

Pilot Lvl 2
Message 4 of 6

Re: Workflow runs on `issues` trigger but not on `schedule` trigger

You're right, this is weird indeed :)

 

Only difference i can see here is that in `JuliaImages` workflow never changed since it was created with '00 ...', while `CompatHelper.jl` have multiple tweaks/edits to it. And hey, `CompatHelper.jl` schedule worked for a very short time but then broke after this commit to never be seen again.

 

So maybe problem is behind scenes, and there's a little tiny difference in how cron settings are updated vs how they're created when using bit weird-looking syntax? That's a wild guessing, obviously, there's no way for both of us to check if that's correct or i'm just talking nonsense here :/

Highlighted
Copilot Lvl 2
Message 5 of 6

Re: Workflow runs on `issues` trigger but not on `schedule` trigger

I tried to reproduce it in a fork. Works just fine there: https://github.com/SaschaMann/CompatHelper.jl/actions

Highlighted
Solution
Copilot Lvl 3
Message 6 of 6

Re: Workflow runs on `issues` trigger but not on `schedule` trigger

I deleted the workflow and recreated it, and now the workflow is correctly running on the cron schedule: https://github.com/bcbi/CompatHelper.jl/actions

 

I am still not sure why it wasn't working originally. I suspect it might have something to do with the merge-bot that we use (Bors), but I don't have any evidence of this.