From fa473c5a17ec88baf816da8a7ffd708a6c9847c0 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Thu, 20 Aug 2026 16:50:44 -0700 Subject: [PATCH 1/3] ci: add managed cask validation --- .github/workflows/casks.yml | 14 ++++++++++++++ Casks/ghd.rb | 22 ++++++++++------------ 2 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/casks.yml diff --git a/.github/workflows/casks.yml b/.github/workflows/casks.yml new file mode 100644 index 0000000..508d610 --- /dev/null +++ b/.github/workflows/casks.yml @@ -0,0 +1,14 @@ +name: Cask CI + +on: + pull_request: + paths: + - 'Casks/**' + +permissions: {} + +jobs: + casks: + permissions: + contents: read + uses: meigma/release/.github/workflows/homebrew-tap-ci.yml@abd25d2f066e544551a502d1f260934955019aeb diff --git a/Casks/ghd.rb b/Casks/ghd.rb index 5e22940..a4d527c 100644 --- a/Casks/ghd.rb +++ b/Casks/ghd.rb @@ -3,29 +3,28 @@ version "0.1.2" on_macos do - on_intel do - sha256 "fede4025bc5d9c88e384af661060ec62eb2f4664eb2700cbd703018c1db2e7b9" - url "https://github.com/meigma/ghd/releases/download/v#{version}/ghd_#{version}_darwin_amd64" - binary "ghd_0.1.2_darwin_amd64", target: "ghd" - end on_arm do sha256 "f40205e7b87862272f4a5b3dcd437afc29bbb60184ea07e9c13797201ba5102e" url "https://github.com/meigma/ghd/releases/download/v#{version}/ghd_#{version}_darwin_arm64" binary "ghd_0.1.2_darwin_arm64", target: "ghd" end - end - - on_linux do on_intel do - sha256 "c70008189f60c1ce4d029add3369cf2d5380ec107b5ee948c7559b864ae6e108" - url "https://github.com/meigma/ghd/releases/download/v#{version}/ghd_#{version}_linux_amd64" - binary "ghd_0.1.2_linux_amd64", target: "ghd" + sha256 "fede4025bc5d9c88e384af661060ec62eb2f4664eb2700cbd703018c1db2e7b9" + url "https://github.com/meigma/ghd/releases/download/v#{version}/ghd_#{version}_darwin_amd64" + binary "ghd_0.1.2_darwin_amd64", target: "ghd" end + end + on_linux do on_arm do sha256 "400ea252e33dab1226fc4d787b7e4192b340adba5e7baaccc75cf3a1573c46da" url "https://github.com/meigma/ghd/releases/download/v#{version}/ghd_#{version}_linux_arm64" binary "ghd_0.1.2_linux_arm64", target: "ghd" end + on_intel do + sha256 "c70008189f60c1ce4d029add3369cf2d5380ec107b5ee948c7559b864ae6e108" + url "https://github.com/meigma/ghd/releases/download/v#{version}/ghd_#{version}_linux_amd64" + binary "ghd_0.1.2_linux_amd64", target: "ghd" + end end name "ghd" @@ -37,5 +36,4 @@ end # No zap stanza required - end From 7cdd73617dfdbe8ef520b531c2fccfc11c105368 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Thu, 20 Aug 2026 16:55:13 -0700 Subject: [PATCH 2/3] fix(ci): use cask-scoped validation --- .github/workflows/casks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/casks.yml b/.github/workflows/casks.yml index 508d610..cc1e829 100644 --- a/.github/workflows/casks.yml +++ b/.github/workflows/casks.yml @@ -11,4 +11,4 @@ jobs: casks: permissions: contents: read - uses: meigma/release/.github/workflows/homebrew-tap-ci.yml@abd25d2f066e544551a502d1f260934955019aeb + uses: meigma/release/.github/workflows/homebrew-tap-ci.yml@ad0e97881556a7d603a1618e46c0129c380f82fe From c71c9a841905a770b370550fcf59dc79c6c67bac Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Thu, 20 Aug 2026 17:04:09 -0700 Subject: [PATCH 3/3] ci: pin merged cask validation workflow --- .github/workflows/casks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/casks.yml b/.github/workflows/casks.yml index cc1e829..3f86e4d 100644 --- a/.github/workflows/casks.yml +++ b/.github/workflows/casks.yml @@ -11,4 +11,4 @@ jobs: casks: permissions: contents: read - uses: meigma/release/.github/workflows/homebrew-tap-ci.yml@ad0e97881556a7d603a1618e46c0129c380f82fe + uses: meigma/release/.github/workflows/homebrew-tap-ci.yml@c9335805068db1bc64c33d9af66cbb8d58657864