From dfe28a029b68ef349e60b8c3e2d45fef9a21cec3 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 19 Apr 2026 13:14:19 +0200 Subject: [PATCH] try fix sqlite --- routers/api/v1/repo/action.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/routers/api/v1/repo/action.go b/routers/api/v1/repo/action.go index 7f798b4d7e..143f4b64bd 100644 --- a/routers/api/v1/repo/action.go +++ b/routers/api/v1/repo/action.go @@ -22,7 +22,6 @@ import ( repo_model "code.gitea.io/gitea/models/repo" secret_model "code.gitea.io/gitea/models/secret" "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/httplib" "code.gitea.io/gitea/modules/setting" api "code.gitea.io/gitea/modules/structs" @@ -1037,14 +1036,8 @@ func ActionsListWorkflowRuns(ctx *context.APIContext) { return } if !runExists { - if _, err := convert.GetActionWorkflow(ctx, ctx.Repo.GitRepo, ctx.Repo.Repository, workflowID); err != nil { - if errors.Is(err, util.ErrNotExist) || git.IsErrNotExist(err) { - ctx.APIError(http.StatusNotFound, err) - } else { - ctx.APIErrorInternal(err) - } - return - } + ctx.APIError(http.StatusNotFound, util.NewNotExistErrorf("workflow %q not found", workflowID)) + return } repoID := ctx.Repo.Repository.ID