Skip to content

ci: add manual sync-brew-formula workflow#52

Closed
lukeocodes wants to merge 2 commits intomainfrom
ci/sync-brew-formula-rust-deps
Closed

ci: add manual sync-brew-formula workflow#52
lukeocodes wants to merge 2 commits intomainfrom
ci/sync-brew-formula-rust-deps

Conversation

@lukeocodes
Copy link
Copy Markdown
Member

Summary

Adds a manual escape-hatch workflow (`workflow_dispatch`) for syncing `deepgram/homebrew-tap/Formula/deepgram.rb` when the auto-bump path can't fire (typically: no root `v*` release was cut, but we still need the live formula patched immediately to unblock `brew install`).

The workflow uses the existing `CLI_TAP_SYNC_PAT` secret. Idempotent — skips if rust dep already present. Aborts safely if the formula has been hand-edited.

Why now

We tried to run this to ship the rust + pkgconf build-deps fix that's currently breaking `brew install deepgram/tap/deepgram` (failure log). The patch step succeeded, but the push step hit a 403 from `deepgram-robot` to `deepgram/homebrew-tap`:

```
remote: Permission to deepgram/homebrew-tap.git denied to deepgram-robot.
fatal: unable to access 'https://github.com/deepgram/homebrew-tap/': The requested URL returned error: 403
```

This means the existing `bump-brew-formula` job in `release.yml` will hit the same 403 on the next root release. Action needed: grant `deepgram-robot` write access on `deepgram/homebrew-tap` (or rotate the PAT to a credential owner who already has access).

After permissions are corrected, this workflow can be re-triggered via the Actions tab (`Run workflow` → branch `main`).

Pre-existing comments

The workflow's header docstring is category 3 necessary — documents when to use this manual workflow vs the standard auto-bump in release.yml. Without it, a maintainer seeing two formula-syncing workflows might delete the wrong one as redundant or use the manual escape hatch for a normal release.

lukeocodes added 2 commits May 2, 2026 12:23
Manual escape hatch for when the auto-bump-on-release path can't fire
(e.g. no root v* release was cut but we need the live tap formula
patched immediately to unblock 'brew install').

Uses the existing CLI_TAP_SYNC_PAT secret to push directly to
deepgram/homebrew-tap. Idempotent: skips if rust dep already present.
Aborts safely if the formula has been hand-edited (marker text not
found or duplicated).

Triggered immediately to ship the rust + pkgconf fix for the
cryptography / pydantic_core source-build failure currently breaking
'brew install deepgram/tap/deepgram'.
@lukeocodes
Copy link
Copy Markdown
Member Author

Closing — folding into #49 to keep one PR for the brew fix work. The sync workflow can't actually push anyway (403 from deepgram-robot to homebrew-tap, see failed run) so it's dead until the PAT permissions are fixed. Easier to re-add the workflow once permissions work, rather than carry an unusable PR.

@lukeocodes lukeocodes closed this May 2, 2026
@lukeocodes lukeocodes deleted the ci/sync-brew-formula-rust-deps branch May 2, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant