From c5682b5406d78628411de63c9113ec6d24729a26 Mon Sep 17 00:00:00 2001 From: Ryan Albert Date: Mon, 18 Nov 2024 16:28:32 -0800 Subject: [PATCH] feat: update --- internal/actions/release.go | 2 +- internal/actions/runWorkflow.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/actions/release.go b/internal/actions/release.go index d4d5868..ced654d 100644 --- a/internal/actions/release.go +++ b/internal/actions/release.go @@ -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) } diff --git a/internal/actions/runWorkflow.go b/internal/actions/runWorkflow.go index daee1eb..f5aaa20 100644 --- a/internal/actions/runWorkflow.go +++ b/internal/actions/runWorkflow.go @@ -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) }