gitea-release-drafter/main.go

34 lines
545 B
Go
Raw Normal View History

2023-03-05 22:39:55 +01:00
package main
import (
"context"
"git.beisel.it/florian/gitea-release-drafter/src"
"git.beisel.it/florian/gitea-release-drafter/src/config"
2023-03-05 22:39:55 +01:00
githubactions "github.com/sethvargo/go-githubactions"
)
func run() error {
ctx := context.Background()
ghaction := githubactions.New()
cfg, err := config.NewFromInputs(ghaction)
if err != nil {
return err
}
action, err := src.NewAction(&ctx, cfg)
if err != nil {
return err
}
return action.Run()
}
func main() {
err := run()
if err != nil {
githubactions.Fatalf("%v", err)
}
}