From fb6ed2b9c7e4459000c3db6a6bf359fd07cc1c90 Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Tue, 27 Feb 2024 12:16:55 -0500 Subject: [PATCH] ci(release): fix homebrew bump-formula --- .github/workflows/release.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 990d4b56..466f48d5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -108,7 +108,15 @@ jobs: - name: Tap formula run: brew tap elixir-tools/tap + - name: Configure git + run: | + git config --global user.name github-actions[bot] + git config --global user.email github-actions[bot]@users.noreply.github.com + - name: Bump formula + env: + HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | formula="next-ls" version="${{ needs.release.outputs.tag_name }}" @@ -121,4 +129,4 @@ jobs: git checkout main && git pull ) - HOMEBREW_GITHUB_API_TOKEN="$(gh auth token)" brew bump-formula-pr "$formula" --url="$url" --sha256="$sha" --no-fork --no-browse + brew bump-formula-pr "$formula" --url="$url" --sha256="$sha" --no-fork --no-browse