Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/release-allowed-signers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
release namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII9XsaCcr8TInPnHcuTVfvXXcsoUFrOE7menfbEIHFW9 steipete@gmail.com
63 changes: 63 additions & 0 deletions .github/workflows/homebrew-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Update Homebrew Tap

on:
workflow_call:
inputs:
tag:
required: true
type: string
secrets:
HOMEBREW_TAP_TOKEN:
required: true

permissions:
contents: read

jobs:
update-homebrew-tap:
runs-on: ubuntu-latest
steps:
- name: Resolve release tag
id: release
shell: bash
run: |
set -euo pipefail
tag="${{ inputs.tag || github.ref_name }}"
if [[ -z "$tag" ]]; then
echo "Missing release tag." >&2
exit 1
fi
echo "tag=$tag" >> "$GITHUB_OUTPUT"
echo "request_id=clawscan-${tag}-${GITHUB_RUN_ID}" >> "$GITHUB_OUTPUT"

- name: Dispatch tap update
env:
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
shell: bash
run: |
set -euo pipefail
test -n "$GH_TOKEN"
gh workflow run update-formula.yml \
--repo openclaw/homebrew-tap \
-f formula=clawscan \
-f tag="${{ steps.release.outputs.tag }}" \
-f repository=openclaw/clawscan \
-f artifact_template='{formula}_{tag}_{target}.tar.gz' \
-f request_id="${{ steps.release.outputs.request_id }}"

- name: Wait for tap update
env:
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
shell: bash
run: |
set -euo pipefail
for _ in {1..20}; do
run_id="$(gh run list --repo openclaw/homebrew-tap --workflow update-formula.yml --json databaseId,displayTitle --jq '.[] | select(.displayTitle | contains("${{ steps.release.outputs.request_id }}")) | .databaseId' | head -n1)"
if [[ -n "$run_id" ]]; then
gh run watch "$run_id" --repo openclaw/homebrew-tap --exit-status
exit 0
fi
sleep 5
done
echo "Timed out waiting for tap workflow to appear." >&2
exit 1
304 changes: 0 additions & 304 deletions .github/workflows/npm-release.yml

This file was deleted.

Loading
Loading