Skip to content

Commit

Permalink
undo even that
Browse files Browse the repository at this point in the history
  • Loading branch information
walteh committed Nov 23, 2023
1 parent 49250b5 commit c0da911
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions cmd/simver_github_actions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
}

}

0 comments on commit c0da911

Please sign in to comment.