Skip to content

Commit 83e5ecc

Browse files
committed
build: fixing brew forumla release workflow
1 parent 37ed69e commit 83e5ecc

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -138,28 +138,10 @@ jobs:
138138
update_brew_formula:
139139
name: Update Brew Formula
140140
needs: github_release
141-
runs-on: macos-latest
141+
runs-on: ubuntu-latest
142142
steps:
143-
- name: Checkout
144-
uses: actions/checkout@v2
145-
146-
- name: Prune & Unshallow
147-
run: git fetch --prune --unshallow
148-
149-
- name: Set version
150-
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
151-
152-
- name: Bump formula
153-
run: |
154-
echo "https://bojand:$GH_PAGES_ACTION_TOKEN@github.com" > ~/.git-credentials
155-
git config --global credential.helper store
156-
git config --global user.name "bojand"
157-
git config --global user.email "dbojan@gmail.com"
158-
cd $(brew --repo homebrew/core)
159-
git fetch origin
160-
sudo git reset --hard origin/master
161-
cd -
162-
brew bump-formula-pr --url=https://github.com/bojand/ghz/archive/${{ env.RELEASE_VERSION }}.tar.gz --message="Automated release pull request using continuous integration." --no-browse -v ghz --force
163-
brew bump-formula-pr --url=https://github.com/bojand/ghz/archive/${{ env.RELEASE_VERSION }}.tar.gz --message="Automated release pull request using continuous integration." --no-browse -v ghz-web --force
143+
- uses: mislav/bump-homebrew-formula-action@v1.6
144+
with:
145+
formula-name: ghz
164146
env:
165-
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_PAGES_ACTION_TOKEN }}
147+
COMMITTER_TOKEN: ${{ secrets.GH_PAGES_ACTION_TOKEN }}

0 commit comments

Comments
 (0)