Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
fix: use PR instead of direct push for Homebrew formula updates
riley022707f45a9b21bc
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.ymlindex cb392b6a..a7e9a6fd 100644--- a/.github/workflows/release-please.yml+++ b/.github/workflows/release-please.yml@@ -176,8 +176,10 @@ jobs:"ix-${VERSION}-windows-amd64.zip.sha256" \--clobber- # ── 6. Update Homebrew formula and commit to main ───────────────────+ # ── 6. Update Homebrew formula via PR ──────────────────────────────- name: Update Homebrew formula+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}run: |VERSION="${{ needs.release-please.outputs.version }}"TAG="${{ needs.release-please.outputs.tag_name }}"@@ -189,7 +191,10 @@ jobs:git config user.name "github-actions[bot]"git config user.email "github-actions[bot]@users.noreply.github.com"- git checkout main++ BRANCH="chore/brew-update-${TAG}"+ git checkout -b "$BRANCH"git add homebrew/ix.rb- git commit -m "brew: update formula for ${TAG}" || echo "No formula changes"- git push origin main+ git commit -m "brew: update formula for ${TAG}" || exit 0+ git push origin "$BRANCH"+ gh pr create --title "brew: update formula for ${TAG}" --body "Auto-generated: updates Homebrew formula SHA for ${TAG}" --base maindiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex dcba27d6..eab22d39 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -178,8 +178,10 @@ jobs:ix-${{ steps.version.outputs.version }}-windows-amd64.zipix-${{ steps.version.outputs.version }}-windows-amd64.zip.sha256- # ── 6. Update Homebrew formula and commit to main ───────────────────+ # ── 6. Update Homebrew formula via PR ──────────────────────────────- name: Update Homebrew formula+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}run: |VERSION="${{ steps.version.outputs.version }}"TARBALL_URL="https://github.com/${{ github.repository }}/archive/refs/tags/v${VERSION}.tar.gz"@@ -190,7 +192,10 @@ jobs:git config user.name "github-actions[bot]"git config user.email "github-actions[bot]@users.noreply.github.com"- git checkout main++ BRANCH="chore/brew-update-v${VERSION}"+ git checkout -b "$BRANCH"git add homebrew/ix.rb- git commit -m "brew: update formula for v${VERSION}" || echo "No formula changes"- git push origin main+ git commit -m "brew: update formula for v${VERSION}" || exit 0+ git push origin "$BRANCH"+ gh pr create --title "brew: update formula for v${VERSION}" --body "Auto-generated: updates Homebrew formula SHA for v${VERSION}" --base main