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: jobs:
pr-pull: pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull') if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-latest runs-on: macos-13
steps: steps:
- name: Set up Homebrew - name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master uses: Homebrew/actions/setup-homebrew@master
@ -18,7 +18,7 @@ jobs:
env: env:
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }} HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
PULL_REQUEST: ${{ github.event.pull_request.number }} 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 - name: Push commits
uses: Homebrew/actions/git-try-push@master uses: Homebrew/actions/git-try-push@master
@ -30,4 +30,4 @@ jobs:
if: github.event.pull_request.head.repo.fork == false if: github.event.pull_request.head.repo.fork == false
env: env:
BRANCH: ${{ github.event.pull_request.head.ref }} 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: pull_request:
jobs: jobs:
test-bot: test-bot:
strategy: runs-on: macos-13
matrix:
os: [macOS-latest]
runs-on: ${{ matrix.os }}
steps: steps:
- name: Set up Homebrew - name: Set up Homebrew
id: set-up-homebrew id: set-up-homebrew
@ -16,7 +13,7 @@ jobs:
- name: Cache Homebrew Bundler RubyGems - name: Cache Homebrew Bundler RubyGems
id: cache id: cache
uses: actions/cache@v1 uses: actions/cache@v4
with: with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }} path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}