diff --git a/actions/draft-release/main.go b/actions/draft-release/main.go index 5453a728..0073fe01 100644 --- a/actions/draft-release/main.go +++ b/actions/draft-release/main.go @@ -22,6 +22,7 @@ import ( _ "embed" "net/http" "os" + "path/filepath" "strconv" "strings" @@ -45,6 +46,18 @@ func main() { panic(err) } + cwd, err := os.Getwd() + if err != nil { + panic(err) + } + fmt.Println("CWD:", cwd) + files, err := filepath.Glob("./*") + if err != nil { + panic(err) + } + fmt.Println("Files:", files) + fmt.Println("Payload:", payload) + buf := &bytes.Buffer{} err = drafter.BuildAndWriteReleaseDraftFromTemplate(buf, templateContents, payload) if err != nil { diff --git a/octo/draft_release.go b/octo/draft_release.go index 873c8fe8..9eb7b14f 100644 --- a/octo/draft_release.go +++ b/octo/draft_release.go @@ -118,22 +118,9 @@ func ContributeDraftRelease(descriptor Descriptor) ([]Contribution, error) { if builderExists || packageExists { j.Steps = append(j.Steps, NewDockerCredentialActions(descriptor.DockerCredentials)...) - - j.Steps = append(j.Steps, - actions.Step{ - Name: "Install crane", - Run: StatikString("/install-crane.sh"), - Env: map[string]string{"CRANE_VERSION": CraneVersion}, - }, - ) } j.Steps = append(j.Steps, - actions.Step{ - Name: "Install yj", - Run: StatikString("/install-yj.sh"), - Env: map[string]string{"YJ_VERSION": YJVersion}, - }, actions.Step{ Uses: "actions/checkout@v3", },