Skip to content

Commit

Permalink
Merge pull request Homebrew#202658 from Homebrew/action-validator
Browse files Browse the repository at this point in the history
action-validator: add shell completion and manpage support
  • Loading branch information
BrewTestBot authored Dec 28, 2024
2 parents 2a54061 + c8a727e commit 6c60ff6
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions Formula/a/action-validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,22 @@ class ActionValidator < Formula
url "https://github.com/SchemaStore/schemastore.git",
revision: "7bf746bd90d7e88cd11f0a9dc4bc34c91fbbf7b4"
end

# shell completion and manpage support, upstream pr ref, https://github.com/mpalmer/action-validator/pull/82
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/ffcaead14f73c08531313dcb7c300918db576c3b/action-validator/0.6.0-completion-manpage.patch"
sha256 "91b0f5170e52537f78e4b196e3b3dd580e3e56e6479f14ba59cdfcff556f4680"
end
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "217670580f0191e931fb0881a7aeef50e1077537a2305e74de8c1b6960216871"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "347c3544b0c5726c557d949e4169d7e31e8e9b6ddb8d10fe30cd763dc7df030f"
sha256 cellar: :any_skip_relocation, arm64_ventura: "d788de5edb5dcc71093119528a77e9cdbfe62a3de062e42f437057c7c46d70b3"
sha256 cellar: :any_skip_relocation, arm64_monterey: "70fad7c8608b4e2ed2940a68b94a527cc609c279a422c326c18fae57e20095bd"
sha256 cellar: :any_skip_relocation, sonoma: "e2c2aa5d31932a9b2e40c136da4608b0db775aa60b730b70131ee7f1a81cf9ad"
sha256 cellar: :any_skip_relocation, ventura: "36815305c61bb8943c8393f98dcf53495ce9164a736108ca97aee7c70c57342f"
sha256 cellar: :any_skip_relocation, monterey: "8e6f2d8e17962160c4b61ce9401decef9dc6d062a3da67838192e9d185277a65"
sha256 cellar: :any_skip_relocation, x86_64_linux: "151521ccea42db3b37dcd607c8fa70bf3b974d6fe03050ec0538c8ecea4d6c49"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sequoia: "467356ff337f000cdab20947b5f4fa5ead9cbaba83801d0e7862c940f4264a32"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "7b79e8f1f28865df8a87a837d22775fb52de8bc9f63875f49cb12bc9bdc9f15d"
sha256 cellar: :any_skip_relocation, arm64_ventura: "8cd34c8e34dd85ed863fcfd4d70572a9b0fa8975a6fbefb7cd0b877a0bd12929"
sha256 cellar: :any_skip_relocation, sonoma: "f7b4ab4bad8d7bb8cf2df0b8268da4dce66b24c3381a22e3e4e28a636a5b252f"
sha256 cellar: :any_skip_relocation, ventura: "49439159f898d39b291cf67394a89be873f1986e1ed5537e8730e3544335d6e5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "664ea399cda470343bb3d8a0690cc9be3cf5e6410f3b16773a6d7396f3c0e940"
end

head do
Expand All @@ -36,9 +41,16 @@ class ActionValidator < Formula
depends_on "rust" => :build

def install
ENV["GEN_DIR"] = buildpath

(buildpath/"src/schemastore").install resource("schemastore")

system "cargo", "install", *std_cargo_args

bash_completion.install "completions/action-validator.bash"
fish_completion.install "completions/action-validator.fish"
zsh_completion.install "completions/_action-validator"
man1.install "man/action-validator.1"
end

test do
Expand Down

0 comments on commit 6c60ff6

Please sign in to comment.