From c0da911e1db29ed4ceef65917aabb1b8cb2a0351 Mon Sep 17 00:00:00 2001 From: Walter Scott Date: Thu, 23 Nov 2023 08:22:23 -0600 Subject: [PATCH] undo even that --- cmd/simver_github_actions/main.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/cmd/simver_github_actions/main.go b/cmd/simver_github_actions/main.go index a94a12b..ece0886 100644 --- a/cmd/simver_github_actions/main.go +++ b/cmd/simver_github_actions/main.go @@ -37,8 +37,6 @@ func main() { tags := tt.ApplyRefs(ee.ProvideRefs()) - vers, commit := tt.CurrentBuildTag(ee.ProvideRefs()) - err = tagwriter.CreateTags(ctx, tags...) if err != nil { zerolog.Ctx(ctx).Error().Err(err).Msgf("error creating tag: %v", err) @@ -47,22 +45,4 @@ func main() { os.Exit(1) } - // save current build tag to .simver - - f, err := os.Create(".simver") - if err != nil { - zerolog.Ctx(ctx).Error().Err(err).Msgf("error creating .simver file: %v", err) - fmt.Println(terrors.FormatErrorCaller(err)) - os.Exit(1) - } - - defer f.Close() - - _, err = f.WriteString(`{"tag_name":"` + vers + `","tag_sha":"` + commit + `"}`) - if err != nil { - zerolog.Ctx(ctx).Error().Err(err).Msgf("error writing .simver file: %v", err) - fmt.Println(terrors.FormatErrorCaller(err)) - os.Exit(1) - } - }