feature/add-actions #9

Merged
kjuulh merged 6 commits from feature/add-actions into v0.1 2022-09-14 23:40:59 +02:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 4daa687479 - Show all commits

View File

@ -7,4 +7,5 @@ select:
- gitea: git.front.kjuulh.io/kraken
organisation: "kraken"
actions:
- "go run main.go"
- type: go
entry: "main.go"

View File

@ -12,7 +12,10 @@ type KrakenSchema struct {
Organisation string `yaml:"organisation"`
} `yaml:"providers"`
} `yaml:"select"`
Actions []string `yaml:"actions"`
Actions []struct {
Type string `yaml:"type"`
Entry string `yaml:"entry"`
} `yaml:"actions"`
}
func Unmarshal(raw string) (*KrakenSchema, error) {