mirror of
https://github.com/ChristianSch/gitea-release-drafter.git
synced 2026-03-05 13:32:59 +00:00
feat: implemented first version
This commit is contained in:
33
main.go
Normal file
33
main.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.andinfinity.de/gitea-release-drafter/src"
|
||||
"git.andinfinity.de/gitea-release-drafter/src/config"
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user