artifacts/pull/main.go

32 lines
536 B
Go
Raw Normal View History

2024-11-01 23:54:31 +01:00
package main
2025-10-05 20:39:02 +02:00
import (
"context"
"os"
"os/signal"
"code.geekeey.de/actions/sdk"
)
2024-11-01 23:54:31 +01:00
func main() {
2026-01-23 22:22:32 +01:00
action := &pullArtifactAction{Action: sdk.New()}
2025-10-05 20:39:02 +02:00
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
defer cancel()
if err := action.Run(ctx); err != nil {
action.Errorf("%s", err)
os.Exit(1)
}
}
2026-01-23 22:22:32 +01:00
type pullArtifactAction struct {
2025-10-05 20:39:02 +02:00
*sdk.Action
name string
}
2026-01-23 22:22:32 +01:00
func (action *pullArtifactAction) setup() error {
2025-10-05 20:39:02 +02:00
return nil
}
2026-01-23 22:22:32 +01:00
func (action *pullArtifactAction) Run(ctx context.Context) error {
2025-10-05 20:39:02 +02:00
return nil
2024-11-01 23:54:31 +01:00
}