From 5f5943ba3f582d8098bfca04754eead8efebc9fe Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Thu, 26 Jun 2025 23:52:19 +0300 Subject: [PATCH] build(workflow): fix homebrew release workflow --- .github/workflows/manual-homebrew-release.yml | 2 ++ .github/workflows/release.yml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual-homebrew-release.yml b/.github/workflows/manual-homebrew-release.yml index d3b7702..6153e69 100644 --- a/.github/workflows/manual-homebrew-release.yml +++ b/.github/workflows/manual-homebrew-release.yml @@ -36,3 +36,5 @@ jobs: -H "Authorization: Bearer $GH_TOKEN" \ https://api.github.com/repos/chenasraf/homebrew-tap/dispatches \ -d "{\"event_type\":\"trigger-from-release\",\"client_payload\":{\"tag\":\"$tag\",\"repo\":\"$repo\"}}" + echo "Dispatched tag $tag from $repo" + echo "Created job on https://github.com/chenasraf/homebrew-tap/actions" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 616d17a..422fc13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -106,14 +106,17 @@ jobs: if: ${{ needs.release-please.outputs.release_created }} runs-on: ubuntu-latest steps: - - name: Send dispatch to target repo + - name: Send dispatch to homebrew-tap env: GH_TOKEN: ${{ secrets.REPO_DISPATCH_PAT }} run: | repo="${{ github.repository }}" tag="${{ needs.release-please.outputs.tag_name }}" + echo "Dispatching tag $tag from $repo" curl -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $GH_TOKEN" \ https://api.github.com/repos/chenasraf/homebrew-tap/dispatches \ -d "{\"event_type\":\"trigger-from-release\",\"client_payload\":{\"tag\":\"$tag\",\"repo\":\"$repo\"}}" + echo "Dispatched tag $tag from $repo" + echo "Created job on https://github.com/chenasraf/homebrew-tap/actions"