Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@ jobs:
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 --no-cherry-pick --workflows=tests-arm.yml --tap=$GITHUB_REPOSITORY $PULL_REQUEST
run: export HOMEBREW_NO_INSTALL_FROM_API=1 ; 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 }}
force: true
branch: main

- name: Delete branch
if: github.event.pull_request.head.repo.fork == false
env:
BRANCH: ${{ github.event.pull_request.head.ref }}
run: git push --delete origin $BRANCH
Loading