workflows/vendor-gem: simplify condition

This commit is contained in:
Ruoyu Zhong 2024-07-14 10:44:43 -04:00
parent 652eafc966
commit 41c43dcd9f
No known key found for this signature in database

View File

@ -22,15 +22,7 @@ permissions:
jobs: jobs:
vendor-gems: vendor-gems:
if: > if: github.repository_owner == 'Homebrew'
github.repository_owner == 'Homebrew' && (
github.event_name == 'workflow_dispatch' ||
github.event_name == 'pull_request' ||
github.event_name == 'push' || (
github.event.pull_request.user.login == 'dependabot[bot]' &&
contains(github.event.pull_request.title, '/Library/Homebrew')
)
)
runs-on: macos-14 runs-on: macos-14
steps: steps:
- name: Set up Homebrew - name: Set up Homebrew