Skip to content

Commit 0ca596e

Browse files
author
lgmugnier
authored
Fix branch commit to include bottle info (#273)
1 parent b7059eb commit 0ca596e

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)