Skip to content

Commit

Permalink
build: fixing brew forumla release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Nov 21, 2020
1 parent 37ed69e commit 83e5ecc
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,28 +138,10 @@ jobs:
update_brew_formula:
name: Update Brew Formula
needs: github_release
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Prune & Unshallow
run: git fetch --prune --unshallow

- name: Set version
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

- name: Bump formula
run: |
echo "https://bojand:[email protected]" > ~/.git-credentials
git config --global credential.helper store
git config --global user.name "bojand"
git config --global user.email "[email protected]"
cd $(brew --repo homebrew/core)
git fetch origin
sudo git reset --hard origin/master
cd -
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
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
- uses: mislav/[email protected]
with:
formula-name: ghz
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_PAGES_ACTION_TOKEN }}
COMMITTER_TOKEN: ${{ secrets.GH_PAGES_ACTION_TOKEN }}

0 comments on commit 83e5ecc

Please sign in to comment.