From 61d055b9169b9eb3d5a458b1dc1cb6ff8d919807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 2 Mar 2024 21:06:45 +0300 Subject: [PATCH] chore(ci): auto-bump the homebrew formula closes #203 --- .github/workflows/cd.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 73cbe40e3f..105ad14bba 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -467,3 +467,17 @@ jobs: run: | cargo publish --allow-dirty --manifest-path git-cliff/Cargo.toml \ --locked --token ${{ secrets.CARGO_TOKEN }} + + publish-homebrew: + name: Publish Homebrew formula + runs-on: ubuntu-22.04 + permissions: + contents: read + steps: + - name: Bump formula + if: ${{ !contains(env.RELEASE_VERSION, 'alpha') && !contains(env.RELEASE_VERSION, 'beta') && !contains(env.RELEASE_VERSION, 'rc') }} + uses: mislav/bump-homebrew-formula-action@v3 + with: + formula-name: git-cliff + env: + COMMITTER_TOKEN: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}