-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actions - Cron schedule not working for all repos #28533
Comments
Whether all the workflow are in the default branch of the repository? |
It's wired. I cannot reproduce it. |
I seem to also be having this issue. The action runs just fine on push, but won't run on the cron schedule. It seems the My action YAML file begins with the following: name: Docker Build
run-name: Build and publish Docker container images
on:
schedule:
- cron: '0 * * * *'
push:
branches:
- 'master' My Gitea version is 1.21.4 running under Docker, using the latest
|
Got the same issue. After updating to 1.21.4 my renovate bot scheduled task stopped working. Tried to disable and enable schedule again, but got no luck. Task config
|
@maltsev-gorskij Do you know what version were you on previously where it worked? I believe the cron schedule support was added on release 1.21.0 with pull #26655 I just tested with Gitea versions 1.21.0, 1.21.1, 1.21.2, 1.21.3, and ended on 1.21.4, each time pushing a new commit. I had a cron schedule configured to run every 5 minutes. In every version I ran into the same issue with the schedule not running and no records being added to the |
A possibly useful trace log:
|
I'm a newbie to gitea, using GitLab for 10+ years now. Evaluating if it's time to switch. Ran into this issue as well (yes I enabled actions in config ;) ). Runnin with docker compose on a Synology NAS (DS918+, DSM 7.1.1-42962 Update 6).
on:
schedule:
- cron: '* * * * *'
jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: say hi
shell: bash
run: echo hi Expected Actual |
I was able to get scheduled actions running again after downgrading to 1.21.3, but only after pushing a commit that modified the schedule. I have not tested whether the scheduled actions run in 1.21.4 after pushing a commit that modifies the schedule. |
Previously it was working on 1.21.3 version. And it worked just fine. After update, scheduling stopped working. |
@maltsev-gorskij and @jameshurst: Looks like @lunny has found the cause of the problem. Thanks Lunny! |
…t ref name (go-gitea#28874) Fix go-gitea#28533 Caused by go-gitea#28691
Hi @lunny thanks for your hard work to fix this! I was not able to respond for a few days, but I'm happy to see the community was able to provide enough information. Last question, do I need to change anything in the affected repositories after I've updated Gitea, or will it fix itself? |
Yes, all old repositories needs a push to the default branch to trigger the cron jobs. |
…t ref name (go-gitea#28874) Fix go-gitea#28533 Caused by go-gitea#28691
…t ref name (go-gitea#28874) Fix go-gitea#28533 Caused by go-gitea#28691
Automatically locked because of our CONTRIBUTING guidelines |
Description
I have configured a lot of repos in my private instance to run in 2 cases:
I had these changes in place before it was supported in Gitea (it was in the spec and I found out later that it was not yet supported). However, now it is supported, but the Actions are not triggered for all repos I have it configured for.
My config, which is the same for all repos:
Gitea Version
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
It is working for some:
But not for others:
Git Version
2.39.2-1.1
Operating System
Debian 12
How are you running Gitea?
I have installed it using the Ansible Role made by @DO1JLR https://github.com/roles-ansible/ansible_role_gitea
It's running via systemd using the binary that came from Github.
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: