Skip to content

Commit

Permalink
fix: use Mentimation bot for updating homebrew-mentimeter (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoccesar authored Jan 23, 2025
1 parent b360ec6 commit fff5313
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ jobs:
- name: Checkout Homebrew Tap Repository
run: git clone https://github.com/mentimeter/homebrew-mentimeter.git

- name: Create app token
id: create_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.MENTIMATION_APP_ID }}
private_key: ${{ secrets.MENTIMATION_PRIVATE_KEY }}

- name: Update Homebrew Formula
run: |
RELEASE_VERSION="${{ needs.build.outputs.release_version }}"
Expand Down Expand Up @@ -187,13 +194,11 @@ jobs:
cd homebrew-mentimeter
git remote set-url origin https://x-access-token:${COMMIT_TOKEN}@github.com/mentimeter/homebrew-mentimeter.git
git config --global user.name "mentibot"
git config --global user.email "122382604+mentibot@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ steps.create_token.outputs.token }}@github.com/mentimeter/homebrew-mentimeter.git
git config --global user.name "mentimation[bot]"
git config --global user.email "141806680+mentimation[bot]@users.noreply.github.com"
git add linkup.rb
git commit -m "Update Linkup formula to $RELEASE_VERSION"
git push origin HEAD:main
env:
COMMIT_TOKEN: ${{ secrets.COMMIT_TOKEN }}

0 comments on commit fff5313

Please sign in to comment.