Skip to content

Commit

Permalink
Merge pull request #166304 from Homebrew/zbctl-fix-livecheck
Browse files Browse the repository at this point in the history
zbctl: update livecheck
  • Loading branch information
p-linnane authored Mar 16, 2024
2 parents 4fad25b + deaa910 commit 61ef771
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Formula/z/zbctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ class Zbctl < Formula

# Upstream creates stable version tags (e.g., `v1.2.3`) before a release but
# the version isn't considered to be released until a corresponding release
# is created on GitHub, so it's necessary to use the `GithubLatest` strategy.
# is created on GitHub. Upstream may not mark all unstable releases as
# "pre-release", so we have to use the `GithubReleases` strategy until the
# "latest" release is always a stable version.
livecheck do
url :stable
strategy :github_latest
regex(/^v?(\d+(?:\.\d+)+)$/i)
strategy :github_releases
end

bottle do
Expand Down

0 comments on commit 61ef771

Please sign in to comment.