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

This commit is contained in:
Kwonunn 2024-10-05 12:14:44 +02:00
parent 1806e336fc
commit b20c0b1469
No known key found for this signature in database
5 changed files with 17 additions and 15 deletions

View file

@ -29,7 +29,7 @@ func UpdateRepositoryUnits(ctx context.Context, repo *repo_model.Repository, uni
}
if slices.Contains(deleteUnitTypes, unit.TypeActions) {
if err := actions_model.CleanRepoScheduleTasks(ctx, repo); err != nil {
if err := actions_model.CleanRepoScheduleTasks(ctx, repo, true); err != nil {
log.Error("CleanRepoScheduleTasks: %v", err)
}
}