Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,20 @@ jobs:
git commit -m "Update Homebrew cask to v${{ steps.meta.outputs.version }} [skip ci]"
git remote set-url origin "https://execsumo:${GH_PAT}@github.com/execsumo/Heard.git"
git push origin HEAD:refs/heads/master

# Clone the Homebrew tap repo, copy the updated cask, and push so that
# `brew upgrade --cask heard` picks up the new version automatically.
- name: Push cask to Homebrew tap
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
VERSION="${{ steps.meta.outputs.version }}"
git clone "https://execsumo:${GH_PAT}@github.com/execsumo/homebrew-heard.git" homebrew-tap
mkdir -p homebrew-tap/Casks
cp Casks/heard.rb homebrew-tap/Casks/heard.rb
cd homebrew-tap
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add Casks/heard.rb
git commit -m "Update heard to v${VERSION}"
git push origin HEAD:refs/heads/master
Loading