Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
Signed-off-by: a1012112796 <1012112796@qq.com>
  • Loading branch information
a1012112796 committed Apr 22, 2023
1 parent 5e8ef6b commit 2c81c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/web/repo/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import (
"code.gitea.io/gitea/modules/typesniffer"
"code.gitea.io/gitea/modules/util"
"code.gitea.io/gitea/routers/web/feed"

"github.com/nektos/act/pkg/model"
)

Expand Down Expand Up @@ -353,8 +354,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st
} else if actions.IsWorkFlow(ctx.Repo.TreePath) {
content, err := actions.GetContentFromEntry(entry)
if err != nil {
ctx.Error(http.StatusInternalServerError, err.Error())
return
log.Error("actions.GetContentFromEntry: %v", err)
}
_, workFlowErr := model.ReadWorkflow(bytes.NewReader(content))
if workFlowErr != nil {
Expand Down

0 comments on commit 2c81c22

Please sign in to comment.