1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-09-15 18:56:59 +00:00

fix: don't cancel schedule workflows on push to main branch

(cherry picked from commit b20c0b1469)
This commit is contained in:
Kwonunn 2024-10-05 12:14:44 +02:00 committed by forgejo-backport-action
parent f2f2d7dab2
commit d2d161ad28
5 changed files with 17 additions and 15 deletions

View file

@ -1031,7 +1031,7 @@ func SettingsPost(ctx *context.Context) {
return
}
if err := actions_model.CleanRepoScheduleTasks(ctx, repo); err != nil {
if err := actions_model.CleanRepoScheduleTasks(ctx, repo, true); err != nil {
log.Error("CleanRepoScheduleTasks for archived repo %s/%s: %v", ctx.Repo.Owner.Name, repo.Name, err)
}