Skip to content

Commit

Permalink
Minor updates to Homebrew workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-bagterp committed Nov 1, 2024
1 parent 5ccf811 commit ad3ae5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: brew pr-pull
name: Homebrew tap pull request bot

on:
pull_request_target:
types:
- labeled

jobs:
pr-pull:
brew-pr-pull:
name: Homebrew pull request bottles
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-latest
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Set up git
- name: Set up Git
uses: Homebrew/actions/git-user-config@master

- name: Pull bottles
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: brew test-bot
name: Homebrew tap test bot

on:
push:
branches:
- master
pull_request:

jobs:
test-bot:
brew-test-bot:
name: Homebrew test bot
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
Expand All @@ -15,15 +18,15 @@ jobs:
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Cache Homebrew Bundler RubyGems
- name: Cache Homebrew bundler RubyGems
id: cache
uses: actions/cache@v4
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
- name: Install Homebrew bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems

Expand All @@ -36,7 +39,7 @@ jobs:
- run: brew test-bot --only-formulae
if: github.event_name == 'pull_request'

- name: Upload bottles as artifact
- name: Upload Homebrew bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@main
with:
Expand Down

0 comments on commit ad3ae5c

Please sign in to comment.