general workflows fixup

This commit is contained in:
Adrian Ho 2025-02-09 23:05:39 +08:00
parent ac8384ee5e
commit fe6f47b063
2 changed files with 5 additions and 8 deletions

View file

@ -6,7 +6,7 @@ on:
jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-latest
runs-on: macos-13
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
@ -18,7 +18,7 @@ jobs:
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
PULL_REQUEST: ${{ github.event.pull_request.number }}
run: brew pr-pull --debug --tap=$GITHUB_REPOSITORY $PULL_REQUEST
run: brew pr-pull --debug --tap="$GITHUB_REPOSITORY" "$PULL_REQUEST"
- name: Push commits
uses: Homebrew/actions/git-try-push@master
@ -30,4 +30,4 @@ jobs:
if: github.event.pull_request.head.repo.fork == false
env:
BRANCH: ${{ github.event.pull_request.head.ref }}
run: git push --delete origin $BRANCH
run: git push --delete origin "$BRANCH"

View file

@ -5,10 +5,7 @@ on:
pull_request:
jobs:
test-bot:
strategy:
matrix:
os: [macOS-latest]
runs-on: ${{ matrix.os }}
runs-on: macos-13
steps:
- name: Set up Homebrew
id: set-up-homebrew
@ -16,7 +13,7 @@ jobs:
- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}