Skip to content

zli-6.36.25-homebrew #83

zli-6.36.25-homebrew

zli-6.36.25-homebrew #83

Workflow file for this run

name: brew pr-pull
on:
pull_request_target:
types:
- labeled
env:
HOMEBREW_NO_INSTALL_FROM_API: 1
permissions:
actions: read
contents: write
pull-requests: write
jobs:
pr-pull:
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
uses: Homebrew/actions/git-user-config@master
- name: Pull bottles
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.PAT }}
PULL_REQUEST: ${{ github.event.pull_request.number }}
run: |
# 1. Fetch the PR branch and switch to it
git fetch origin pull/$PULL_REQUEST/head:pr-$PULL_REQUEST
git checkout pr-$PULL_REQUEST
# 2. Run the pull (this adds the 'bottle do' lines and commits them locally)
brew pr-pull --debug --workflows=tests-arm.yml --tap=$GITHUB_REPOSITORY $PULL_REQUEST
- name: Push commits
uses: Homebrew/actions/git-try-push@master
with:
token: ${{ secrets.PAT }}
branch: ${{ github.event.pull_request.head.ref }}