Skip to content

Commit

Permalink
fix: build linux distro on ubuntu 20
Browse files Browse the repository at this point in the history
  • Loading branch information
wintbiit committed Apr 13, 2024
1 parent 0614011 commit 16ee269
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

backend:
name: Backend
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [ linter ]
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var version string = "v0.0.1"
func main() {
start := time.Now()
defer func() {
log.Info().Str("duration", time.Since(start).String()).Msg("Semantic release done")
log.Info().Str("elapsed", time.Since(start).String()).Msg("Semantic release done")
}()

var opt types.SemanticOptions
Expand Down Expand Up @@ -71,11 +71,11 @@ func main() {

if opt.Analyzer == "" {
opt.Analyzer = "angular"
log.Warn().Msg("ANALYZER not set, using angular analyzer")
log.Warn().Msg("analyzer not set, using angular analyzer")
}

if opt.Repo == "" {
log.Fatal().Msg("REPO not set")
log.Fatal().Msg("repo url not set")
}

semantic.Run(opt)
Expand Down
2 changes: 1 addition & 1 deletion semantic/semantic_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Run(opt types.SemanticOptions) {
}

// get commits since last version
commits, err := r.Log(&git.LogOptions{})
commits, err := r.Log(&git.LogOptions{From: currentCommit.Hash()})
if err != nil {
log.Fatal().Err(err).Msg("Failed to get commits")
}
Expand Down

0 comments on commit 16ee269

Please sign in to comment.