diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9eb3875..d4f300a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -157,6 +157,9 @@ jobs: name: Publish GitHub Release runs-on: ubuntu-latest needs: build + permissions: + contents: write + actions: write steps: - uses: actions/download-artifact@v4 with: @@ -171,3 +174,15 @@ jobs: files: | artifacts/**/* + # Releases created with GITHUB_TOKEN do not emit release events to other workflows. + # Dispatch the tap updater explicitly so Homebrew stays current. + - name: Dispatch Homebrew tap update + env: + GH_TOKEN: ${{ github.token }} + run: | + set -euo pipefail + version="${GITHUB_REF_NAME#v}" + gh workflow run update-homebrew-tap.yml \ + --repo "${GITHUB_REPOSITORY}" \ + -f "version=${version}" +