Replies: 6 comments
-
|
Yeah, because of this I've been considering putting everything in a reusable workflow and including it into two separate workflow with different sets of triggers... |
Beta Was this translation helpful? Give feedback.
-
|
Seen the same thing. Workflow was disabled due to no commits in 60days. I also didn't know about this "feature". It would be nice to have some indication on the main Actions page to indicate a workflow is disabled rather than having to click into the workflow to find out. Pushing a new commit did not trigger the workflow as I would expect. By all means disable the scheduling, but not the whole workflow. Agree that a new commit/pr/etc should automatically re-enable the scheduled runs. Also if the goal is to stop scheduled jobs running pointlessly and wasting resources, add some kind of option that will skip the scheduled run if there have been no commits since the last scheduled run. For a lot of people this would fit their use case and would reduced the number of scheduled job runs. My workflow already has this logic built in, if the head commit is the same as the last run then drop out, but this requires spinning up the workflow container/VM to make that decision. |
Beta Was this translation helpful? Give feedback.
-
|
This issue in live: The funny thing is that this does not disable scheduled builds that exceed said 60 days, now I understand why some people create scheduled tasks "to maintain activity" (scheduled commits...). |
Beta Was this translation helpful? Give feedback.
-
|
Dupe of this opened here: https://github.com/orgs/community/discussions/66834 |
Beta Was this translation helpful? Give feedback.
-
|
Note that https://github.com/orgs/community/discussions/66834 goes into more detail about potential solutions, and the pros and cons of each, so it's worth reviewing even though it's now closed. |
Beta Was this translation helpful? Give feedback.
-
|
This has been hugely problematic for me -- I grasp that scheduled runs will be be disabled after inactivity, and grasp the motivation. But every time I have a new PR on a stable project that's been idle for a while, and CI isn't runnign on it -- each time I end up forgetting how this works, takes me a while to remember why its' not working after being banging my head against the desk for a bit, then a while longer to remember how to re-enable it (and even once I do, I need to get an empty commit to the PR branch to actually trigger the CI now that it's re-enabled). It's been quite disruptive to me, who maintains a fair number of stable not a lot of activity but still in use things. It does make me want to consider putting in the workarounds that other people are using to artificially keep it from ever registering as idle -- which seems kind of rude, I get why you don't want to run scheduled things forever on an abandoned repo.... I'd accept that if it didn't also have this side effect! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
The "feature" which disables scheduled workflows after 60 days of inactivity also disables non-scheduled triggers of the same workflow.
Also, scheduled workflows should be re-enabled when there is activity, such as creating a new PR on the project.
To Reproduce
Steps to reproduce the behaviour:
Create a
.github/workflows/test.ymlworkflow with the following triggers:Wait for 60 days so the test workflow is disabled
Create pull request in the repo
Expected behaviour
The test workflow should run.
Actual behaviour
The workflow does not run, and there is no indication of why. I only managed to figure out why by seeing some kind of new link in the
/actionspage, clicking on it, seeing a message about the scheduled workflow being disabled, and re-enabling it. (I can't get a screenshot without waiting another 60 days for the workflow to be disabled again.)Beta Was this translation helpful? Give feedback.
All reactions