forked from forgejo/forgejo
Backport #30224 by @Zettat123 Fix #30220 Co-authored-by: Zettat123 <zettat123@gmail.com> (cherry picked from commit 895d2795abe79cc2e87b35d39cb7d09b9234b06d)
This commit is contained in:
parent
94fc99c217
commit
b310027e55
4 changed files with 29 additions and 2 deletions
|
@ -66,6 +66,11 @@ func startTasks(ctx context.Context) error {
|
|||
}
|
||||
}
|
||||
|
||||
if row.Repo.IsArchived {
|
||||
// Skip if the repo is archived
|
||||
continue
|
||||
}
|
||||
|
||||
cfg, err := row.Repo.GetUnit(ctx, unit.TypeActions)
|
||||
if err != nil {
|
||||
if repo_model.IsErrUnitTypeNotExist(err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue