mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fix Homebrew cask update workflow (#4203)
This commit is contained in:
parent
a0f9310062
commit
1dd0693318
1 changed files with 6 additions and 8 deletions
14
.github/workflows/homebrew.yml
vendored
14
.github/workflows/homebrew.yml
vendored
|
@ -10,8 +10,9 @@ 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
|
||||||
C2_TAGGED_VERSION: '${{ github.ref }}'
|
C2_TAGGED_VERSION: ${{ github.ref_name }}
|
||||||
|
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_stable_homebrew_cask:
|
update_stable_homebrew_cask:
|
||||||
|
@ -19,10 +20,7 @@ jobs:
|
||||||
runs-on: 'macos-latest'
|
runs-on: 'macos-latest'
|
||||||
steps:
|
steps:
|
||||||
# Pulls out the version from the ref (e.g. refs/tags/v2.3.1 -> 2.3.1)
|
# Pulls out the version from the ref (e.g. refs/tags/v2.3.1 -> 2.3.1)
|
||||||
- name: 'Extract version from tag'
|
- name: Execute brew bump-cask-pr with version
|
||||||
run: |
|
run: |
|
||||||
'STRIPPED_VERSION=$(echo "refs/tags/$C2_TAGGED_VERSION" | sed "s/refs\/tags\/v//gm")'
|
echo "Running bump-cask-pr for cask '$C2_CASK_NAME' and version '$C2_TAGGED_VERSION'"
|
||||||
'echo "C2_TAGGED_VERSION=$STRIPPED_VERSION" >> $GITHUB_ENV'
|
brew bump-cask-pr --version "$C2_TAGGED_VERSION" "$C2_CASK_NAME"
|
||||||
- name: 'Execute ''brew bump-cask-pr'' with version'
|
|
||||||
run: 'brew bump-cask-pr --version $C2_TAGGED_VERSION $C2_CASK_NAME'
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue