Co-authored-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: niStee <52573120+niStee@users.noreply.github.comclear> Co-authored-by: GideonBear <87426140+GideonBear@users.noreply.github.com>
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: Publish to Homebrew
|
|
|
|
on:
|
|
# workflow_run:
|
|
# workflows: ["Check SemVer compliance"]
|
|
# types:
|
|
# - completed
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
homebrew-publish:
|
|
runs-on: ubuntu-latest
|
|
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.2.3
|
|
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
|
|
uses: Homebrew/actions/bump-packages@24a0b15df658487e137fcd20fba32757d41a9411 # master
|
|
continue-on-error: true
|
|
with:
|
|
# Custom GitHub access token with only the 'public_repo' scope enabled
|
|
token: ${{secrets.HOMEBREW_ACCESS_TOKEN}}
|
|
# Bump only these formulae if outdated
|
|
formulae: |
|
|
topgrade
|