Fix the brew cask action (#4394)

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
This commit is contained in:
pajlada 2023-02-19 17:08:32 +01:00 committed by GitHub
parent 5ed4a21d6a
commit d3499e814e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -11,6 +11,7 @@ on:
env: env:
# This gets updated later on in the run by a bash script to strip the prefix # This gets updated later on in the run by a bash script to strip the prefix
C2_CASK_NAME: chatterino C2_CASK_NAME: chatterino
# The full version of Chatterino (e.g. v2.4.1)
C2_TAGGED_VERSION: ${{ github.ref_name }} C2_TAGGED_VERSION: ${{ github.ref_name }}
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
@ -23,4 +24,6 @@ jobs:
- name: Execute brew bump-cask-pr with version - name: Execute brew bump-cask-pr with version
run: | run: |
echo "Running bump-cask-pr for cask '$C2_CASK_NAME' and version '$C2_TAGGED_VERSION'" 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"

View file

@ -2,6 +2,8 @@
## Unversioned ## Unversioned
- Dev: Fix homebrew update action. (#4394)
## 2.4.1 ## 2.4.1
- Major: Added live emote updates for BTTV. (#4147) - Major: Added live emote updates for BTTV. (#4147)