Skip to content

Commit

Permalink
ci(release): fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-babichenko committed Aug 16, 2024
1 parent 0d2eb38 commit a0f5bb9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,21 +185,21 @@ jobs:
update-homebrew:
name: Update Homebrew formula
run-on: ubuntu-latest
runs-on: ubuntu-latest
needs: publish_release
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update Homebrew formula
VERSION=${GITHUB_REF#refs/tags/v}

git clone https://github.com/eugene-babichenko/homebrew-fixit.git
cargo xtask packaging $VERSION homebrew > ./homebrew-fixit/Formula/fixit.rb
cd homebrew-fixit
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin https://eugene-babichenko:${{ secrets.HOMEBREW_FORMULA_TOKEN }}@github.com/eugene-babichenko/homebrew-fixit.git
git add Formula/fixit.rb
git commit -m "chore: release $VERSION"
git push origin master
run: |
VERSION=${GITHUB_REF#refs/tags/v}
git clone https://github.com/eugene-babichenko/homebrew-fixit.git
cargo xtask packaging $VERSION homebrew > ./homebrew-fixit/Formula/fixit.rb
cd homebrew-fixit
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin https://eugene-babichenko:${{ secrets.HOMEBREW_FORMULA_TOKEN }}@github.com/eugene-babichenko/homebrew-fixit.git
git add Formula/fixit.rb
git commit -m "chore: release $VERSION"
git push origin master

0 comments on commit a0f5bb9

Please sign in to comment.