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:
@@ -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 }}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user