Skip to content

Commit 29a81ba

Browse files
committed
ci(release): bump the homebrew tap only from BuddhiLW/ClojureWasm
The upstream mirror clojurewasm/ClojureWasm carries this workflow, so merging #18 there cut its own v1.15.1 build and its tap job tried to rewrite Formula/cljw.rb with that build's checksums. The formula's urls name BuddhiLW/ClojureWasm releases, whose artifacts hash differently (linux cb7ad4a5 here vs 586396f7 upstream), so a successful push would have broken brew install. It failed instead with a 403: the mirror has no TAP_DEPLOY_KEY. Guard the job on github.repository; it is skipped, not failed, elsewhere.
1 parent af16b5a commit 29a81ba

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,17 @@ jobs:
272272
#
273273
# Auth is a deploy key on BuddhiLW/homebrew-tap (secret TAP_DEPLOY_KEY), not a
274274
# PAT: write access reaches that one repository and nothing else in the account.
275+
#
276+
# Only the repository the formula downloads from may bump it. The formula's
277+
# urls name BuddhiLW/ClojureWasm releases, and an upstream mirror
278+
# (clojurewasm/ClojureWasm) that carries this workflow cuts its own build of
279+
# the same tag with different checksums: pushing those would break
280+
# `brew install`. The mirror also has no TAP_DEPLOY_KEY, so the job failed
281+
# there with a 403 on every release (v1.15.1, 8621cd0b).
275282
tap:
276283
name: bump homebrew tap
277284
needs: [preflight, build]
285+
if: github.repository == 'BuddhiLW/ClojureWasm'
278286
runs-on: ubuntu-22.04
279287
timeout-minutes: 10
280288
steps:

0 commit comments

Comments
 (0)