File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,10 +26,14 @@ jobs:
2626 - name : Pull bottles
2727 env :
2828 HOMEBREW_GITHUB_API_TOKEN : ${{ secrets.PAT }}
29- HOMEBREW_GITHUB_PACKAGES_TOKEN : ${{ secrets.PAT }}
30- HOMEBREW_GITHUB_PACKAGES_USER : ${{ github.actor }}
3129 PULL_REQUEST : ${{ github.event.pull_request.number }}
32- run : export HOMEBREW_NO_INSTALL_FROM_API=1 ; brew pr-pull --debug --workflows=tests-arm.yml --tap=$GITHUB_REPOSITORY $PULL_REQUEST
30+ run : |
31+ # 1. Fetch the PR branch and switch to it
32+ git fetch origin pull/$PULL_REQUEST/head:pr-$PULL_REQUEST
33+ git checkout pr-$PULL_REQUEST
34+
35+ # 2. Run the pull (this adds the 'bottle do' lines and commits them locally)
36+ brew pr-pull --debug --workflows=tests-arm.yml --tap=$GITHUB_REPOSITORY $PULL_REQUEST
3337
3438 - name : Push commits
3539 uses : Homebrew/actions/git-try-push@master
You can’t perform that action at this time.
0 commit comments