Skip to content

Commit

Permalink
expand condition to match releases that aren't latest
Browse files Browse the repository at this point in the history
Signed-off-by: YiscahLevySilas1 <[email protected]>
  • Loading branch information
YiscahLevySilas1 committed Mar 20, 2024
1 parent cd516e4 commit 1d84ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitregostore/datastructures.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func newGitRegoStore(baseUrl string, owner string, repository string, path strin
watch = true
}

if strings.Contains(tag, "latest") || strings.Contains(tag, "download") {
if strings.Contains(tag, "latest") || strings.Contains(tag, "download") || strings.Contains(path, "releases") {
// TODO - This condition was added to avoid dependency on updating productions configs on deployment.
// Once production configs are updated (branch set to ""), this condition can be removed.
if strings.ToLower(branch) == "master" {
Expand Down

0 comments on commit 1d84ac7

Please sign in to comment.