File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : brew pr-pull
2
+
2
3
on :
3
4
pull_request_target :
4
5
types :
5
6
- labeled
7
+
6
8
jobs :
7
9
pr-pull :
8
10
if : contains(github.event.pull_request.labels.*.name, 'pr-pull')
9
11
runs-on : ubuntu-22.04
10
12
permissions :
11
13
contents : write
12
- packages : none
13
14
pull-requests : write
14
15
steps :
15
16
- name : Set up Homebrew
21
22
- name : Pull bottles
22
23
env :
23
24
HOMEBREW_GITHUB_API_TOKEN : ${{ github.token }}
24
- HOMEBREW_GITHUB_PACKAGES_TOKEN : ${{ github.token }}
25
- HOMEBREW_GITHUB_PACKAGES_USER : ${{ github.actor }}
26
25
PULL_REQUEST : ${{ github.event.pull_request.number }}
27
- run : brew pr-pull --debug --tap=$GITHUB_REPOSITORY $PULL_REQUEST
26
+ run : brew pr-pull --debug --tap=" $GITHUB_REPOSITORY" " $PULL_REQUEST"
28
27
29
28
- name : Push commits
30
29
uses : Homebrew/actions/git-try-push@master
36
35
if : github.event.pull_request.head.repo.fork == false
37
36
env :
38
37
BRANCH : ${{ github.event.pull_request.head.ref }}
39
- run : git push --delete origin $BRANCH
38
+ run : git push --delete origin " $BRANCH"
Original file line number Diff line number Diff line change 1
1
name : brew test-bot
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- main
6
7
pull_request :
8
+
7
9
jobs :
8
10
test-bot :
9
11
strategy :
@@ -16,12 +18,11 @@ jobs:
16
18
uses : Homebrew/actions/setup-homebrew@master
17
19
18
20
- name : Cache Homebrew Bundler RubyGems
19
- id : cache
20
- uses : actions/cache@v3
21
+ uses : actions/cache@v4
21
22
with :
22
23
path : ${{ steps.set-up-homebrew.outputs.gems-path }}
23
- key : ${{ runner .os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
24
- restore-keys : ${{ runner .os }}-rubygems-
24
+ key : ${{ matrix .os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
25
+ restore-keys : ${{ matrix .os }}-rubygems-
25
26
26
27
- run : brew test-bot --only-cleanup-before
27
28
34
35
35
36
- name : Upload bottles as artifact
36
37
if : always() && github.event_name == 'pull_request'
37
- uses : actions/upload-artifact@v3
38
+ uses : actions/upload-artifact@v4
38
39
with :
39
- name : bottles
40
+ name : bottles_${{ matrix.os }}
40
41
path : ' *.bottle.*'
You can’t perform that action at this time.
0 commit comments