Skip to content

Commit

Permalink
Fix the brew cask action (#4394)
Browse files Browse the repository at this point in the history
It previously tried to bump the version from 2.4.0 to v2.4.1
the action didn't strip the v, but it does now
  • Loading branch information
pajlada authored Feb 19, 2023
1 parent 5ed4a21 commit d3499e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
env:
# This gets updated later on in the run by a bash script to strip the prefix
C2_CASK_NAME: chatterino
# The full version of Chatterino (e.g. v2.4.1)
C2_TAGGED_VERSION: ${{ github.ref_name }}
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}

Expand All @@ -23,4 +24,6 @@ jobs:
- name: Execute brew bump-cask-pr with version
run: |
echo "Running bump-cask-pr for cask '$C2_CASK_NAME' and version '$C2_TAGGED_VERSION'"
brew bump-cask-pr --version "$C2_TAGGED_VERSION" "$C2_CASK_NAME"
C2_TAGGED_VERSION_STRIPPED="${C2_TAGGED_VERSION:1}"
echo "Stripped version: '$C2_TAGGED_VERSION_STRIPPED'"
brew bump-cask-pr --version "$C2_TAGGED_VERSION_STRIPPED" "$C2_CASK_NAME"
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unversioned

- Dev: Fix homebrew update action. (#4394)

## 2.4.1

- Major: Added live emote updates for BTTV. (#4147)
Expand Down

0 comments on commit d3499e8

Please sign in to comment.