-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Always delete existing scheduled action tasks #27662
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
Conversation
Something I'm not sure about: |
The behaviour should not be different than before. If the commit changed something unrelated to the scheduled action, all existing tasks are removed and re-added. This PR just forces the deletion even if the config does not contain a scheduled action anymore. |
|
Well, that is one a completely different problem and two not the critical problem as that can be easily fixed by users. |
I think you are right these are 2 bugs . I think this PR just fixed one of two so it should be This PR just resolved if the workflows are deleted but not from valid to invalid. According togo u #27650, the second screenshot displayed the yaml file parse failed I think which is the real reason that the old cron jobs haven't been deleted. |
Isn't that case covered too? If the file is invalid |
workflows, schedules, err := actions_module.DetectWorkflows(gitRepo, commit, input.Event, input.Payload)
if err != nil {
return fmt.Errorf("DetectWorkflows: %w", err)
} |
* giteaofficial/main: [skip ci] Updated translations via Crowdin Add link for repositories README file (go-gitea#27684) Fix typo "GetLatestRunnerToken" (go-gitea#27680) Clipboard copy enhancements (go-gitea#27669) Remove unnecessary parameter (go-gitea#27671) Always delete existing scheduled action tasks (go-gitea#27662) Support allowed hosts for webhook to work with proxy (go-gitea#27655)
Backport #27662 by @KN4CK3R Fixes #27650 Co-authored-by: KN4CK3R <[email protected]>
Fixes #27650