Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Nov 19, 2024
1 parent e41ecd9 commit c5682b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/actions/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func addCurrentBranchTagging(g *git.Git, latestRelease map[string]releases.Langu
}
}

if len(sources) > 0 && len(targets) > 0 && branch != "" {
if (len(sources) > 0 || len(targets) > 0) && branch != "" {
return cli.Tag([]string{branch}, sources, targets)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/actions/runWorkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func addDirectModeBranchTagging() error {
}
}
}
if len(sources) > 0 && len(targets) > 0 && branch != "" {
if (len(sources) > 0 || len(targets) > 0) && branch != "" {
return cli.Tag([]string{branch}, sources, targets)
}

Expand Down

0 comments on commit c5682b5

Please sign in to comment.