mirror of
https://gitea.com/gitea/act_runner.git
synced 2025-06-13 18:17:13 +02:00
chore: remove unused logrous package
This commit is contained in:
14
cmd/root.go
14
cmd/root.go
@ -10,7 +10,6 @@ import (
|
||||
"github.com/nektos/act/pkg/model"
|
||||
"github.com/nektos/act/pkg/runner"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@ -107,17 +106,6 @@ func getWorkflowsPath() (string, error) {
|
||||
return p, nil
|
||||
}
|
||||
|
||||
type StepHook struct{}
|
||||
|
||||
func (hook *StepHook) Levels() []logrus.Level {
|
||||
return logrus.AllLevels
|
||||
}
|
||||
|
||||
func (hook *StepHook) Fire(entry *logrus.Entry) error {
|
||||
fmt.Printf("====== %#v \n ", entry)
|
||||
return nil
|
||||
}
|
||||
|
||||
func runTask(ctx context.Context, input *Input, jobID string) error {
|
||||
workflowsPath, err := getWorkflowsPath()
|
||||
if err != nil {
|
||||
@ -192,8 +180,6 @@ func runTask(ctx context.Context, input *Input, jobID string) error {
|
||||
return fmt.Errorf("New config failed: %v", err)
|
||||
}
|
||||
|
||||
logrus.AddHook(&StepHook{})
|
||||
|
||||
cancel := artifacts.Serve(ctx, input.artifactServerPath, input.artifactServerPort)
|
||||
|
||||
executor := r.NewPlanExecutor(plan).Finally(func(ctx context.Context) error {
|
||||
|
Reference in New Issue
Block a user