Skip to content

Commit 2310c89

Browse files
committed
ci: fix formula template to use if/else and conventional commit message
1 parent 1564c40 commit 2310c89

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,10 @@ jobs:
239239
240240
depends_on :macos
241241
242-
on_arm do
242+
if Hardware::CPU.arm?
243243
url "https://github.com/openbootdotdev/openboot/releases/download/vVERSION_PLACEHOLDER/openboot-darwin-arm64"
244244
sha256 "ARM64_SHA_PLACEHOLDER"
245-
end
246-
247-
on_intel do
245+
else
248246
url "https://github.com/openbootdotdev/openboot/releases/download/vVERSION_PLACEHOLDER/openboot-darwin-amd64"
249247
sha256 "AMD64_SHA_PLACEHOLDER"
250248
end
@@ -274,5 +272,5 @@ jobs:
274272
git config user.email "github-actions[bot]@users.noreply.github.com"
275273
git add Formula/openboot.rb
276274
git diff --cached --quiet && echo "No changes" && exit 0
277-
git commit -m "openboot ${{ needs.detect-release-type.outputs.version_clean }}"
275+
git commit -m "chore: bump openboot to ${{ needs.detect-release-type.outputs.version_clean }}"
278276
git push

0 commit comments

Comments
 (0)