File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 40
40
with :
41
41
username : github-actions[bot]
42
42
43
+ - name : Checkout PR Branch
44
+ working-directory : ${{ steps.set-up-homebrew.outputs.repository-path }}
45
+ env :
46
+ GH_TOKEN : ${{ github.token }}
47
+ run : gh pr checkout ${{ github.event.pull_request.number }}
48
+
43
49
- name : Pull and Publish Bottles
44
50
env :
45
51
HOMEBREW_GITHUB_API_TOKEN : ${{ github.token }}
@@ -49,20 +55,19 @@ jobs:
49
55
run : |
50
56
brew pr-pull \
51
57
--debug \
58
+ --clean \
59
+ --no-cherry-pick \
52
60
--artifact-pattern 'bottles_*' \
53
61
--tap="$GITHUB_REPOSITORY" \
54
62
--workflows ci.yml \
55
63
'${{ github.event.pull_request.number }}'
56
64
57
- - name : Cherry Pick Bottle Commit and Push to PR Branch
58
- working-directory : ${{ steps.set-up-homebrew.outputs.repository-path }}
59
- env :
60
- Branch : ${{ github.event.pull_request.head.ref }}
61
- run : |
62
- bottle_commit=$(git rev-parse HEAD)
63
- git checkout "$Branch"
64
- git cherry-pick "$bottle_commit"
65
- git push -v origin "$Branch"
65
+ - name : Push commits
66
+ uses : Homebrew/actions/git-try-push@master
67
+ with :
68
+ token : ${{ github.token }}
69
+ branch : ${{ github.event.pull_request.head.ref }}
70
+ directory : ${{ steps.set-up-homebrew.outputs.repository-path }}
66
71
67
72
- name : Wait for Remote Branch to be Updated
68
73
working-directory : ${{ steps.set-up-homebrew.outputs.repository-path }}
You can’t perform that action at this time.
0 commit comments