Skip to content

Commit

Permalink
rancher-cli: update livecheck
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Sep 20, 2024
1 parent 7fc4c73 commit feb87ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Formula/r/rancher-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ class RancherCli < Formula
license "Apache-2.0"
head "https://github.com/rancher/cli.git", branch: "master"

# Upstream creates releases that use a stable tag (e.g., `v1.2.3`) but are
# labeled as "pre-release" on GitHub before the version is released, so it's
# necessary to use the `GithubLatest` strategy.
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
strategy :github_latest
end

bottle do
Expand Down

0 comments on commit feb87ae

Please sign in to comment.