wip
All checks were successful
default / test artifact actions (push) Successful in 29s

This commit is contained in:
Louis Seubert 2026-09-13 17:31:36 +02:00
commit abdb555e1a
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
2 changed files with 724 additions and 608 deletions

18
pull/action.yml Normal file
View file

@ -0,0 +1,18 @@
# SPDX-License-Identifier: EUPL-1.2
name: "Artifact Pull"
description: "Download and extract a workflow artifact"
author: "Louis Seubert"
inputs:
name:
description: >
The name of the artifact to download.
required: true
path:
description: >
The directory to extract the artifact into.
required: false
default: "."
runs:
using: "docker"
image: "../Dockerfile"
args: ["pull"]

View file

@ -1,32 +0,0 @@
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
}