From a7ca240f26f7507cd0f436896d9a2857a970242f Mon Sep 17 00:00:00 2001 From: Daniel Mikusa Date: Thu, 14 Apr 2022 12:03:43 -0400 Subject: [PATCH] Remove unnecessary jobs in update draft release Signed-off-by: Daniel Mikusa --- actions/draft-release/main.go | 13 +++++++++++++ octo/draft_release.go | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) 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", },