fix(release): fix homebrew releases by migrating to dawidd6/action-homebrew-bump-formula (#1457)
This commit is contained in:
25
.github/workflows/release_to_homebrew.yml
vendored
25
.github/workflows/release_to_homebrew.yml
vendored
@@ -11,28 +11,11 @@ jobs:
|
|||||||
homebrew-publish:
|
homebrew-publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Homebrew
|
|
||||||
id: set-up-homebrew
|
|
||||||
uses: Homebrew/actions/setup-homebrew@24a0b15df658487e137fcd20fba32757d41a9411 # master
|
|
||||||
|
|
||||||
- name: Cache Homebrew Bundler RubyGems
|
|
||||||
id: cache
|
|
||||||
uses: actions/cache@v4.3.0
|
|
||||||
with:
|
|
||||||
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
|
|
||||||
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
|
||||||
restore-keys: ${{ runner.os }}-rubygems-
|
|
||||||
|
|
||||||
- name: Install Homebrew Bundler RubyGems
|
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
|
||||||
run: brew install-bundler-gems
|
|
||||||
|
|
||||||
- name: Bump formulae
|
- name: Bump formulae
|
||||||
uses: Homebrew/actions/bump-packages@24a0b15df658487e137fcd20fba32757d41a9411 # master
|
uses: dawidd6/action-homebrew-bump-formula@3428a0601bba3173ec0bdcc945be23fa27aa4c31 # v5
|
||||||
continue-on-error: true
|
|
||||||
with:
|
with:
|
||||||
# Custom GitHub access token with only the 'public_repo' scope enabled
|
# Custom GitHub access token with only the 'public_repo' scope enabled
|
||||||
token: ${{secrets.HOMEBREW_ACCESS_TOKEN}}
|
token: ${{secrets.HOMEBREW_ACCESS_TOKEN}}
|
||||||
# Bump only these formulae if outdated
|
formula: topgrade
|
||||||
formulae: |
|
tag: ${{ github.event.client_payload.tag }}
|
||||||
topgrade
|
org: topgrade-rs
|
||||||
|
|||||||
Reference in New Issue
Block a user