wip
This commit is contained in:
parent
046e7995ab
commit
eda52ab138
1 changed files with 209 additions and 137 deletions
32
pull/main.go
Normal file
32
pull/main.go
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
||||
"code.geekeey.de/actions/sdk"
|
||||
)
|
||||
|
||||
func main() {
|
||||
action := &pullArtifactAction{Action: sdk.New()}
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
|
||||
defer cancel()
|
||||
if err := action.Run(ctx); err != nil {
|
||||
action.Errorf("%s", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
type pullArtifactAction struct {
|
||||
*sdk.Action
|
||||
name string
|
||||
}
|
||||
|
||||
func (action *pullArtifactAction) setup() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (action *pullArtifactAction) Run(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
Loading…
Reference in a new issue