Commit a5713ba 1 parent 821dedf commit a5713ba Copy full SHA for a5713ba
File tree 2 files changed +15
-13
lines changed
2 files changed +15
-13
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
- runs-on : ubuntu-latest
11
+ runs-on : ubuntu-22.04
12
+ permissions :
13
+ contents : write
14
+ pull-requests : write
10
15
steps :
11
16
- name : Set up Homebrew
12
17
uses : Homebrew/actions/setup-homebrew@master
18
23
env :
19
24
HOMEBREW_GITHUB_API_TOKEN : ${{ github.token }}
20
25
PULL_REQUEST : ${{ github.event.pull_request.number }}
21
- run : brew pr-pull --debug --tap="${ GITHUB_REPOSITORY} " "${ PULL_REQUEST} "
26
+ run : brew pr-pull --debug --tap="$GITHUB_REPOSITORY" "$PULL_REQUEST"
22
27
23
28
- name : Push commits
24
29
uses : Homebrew/actions/git-try-push@master
30
35
if : github.event.pull_request.head.repo.fork == false
31
36
env :
32
37
BRANCH : ${{ github.event.pull_request.head.ref }}
33
- 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 :
10
12
matrix :
11
- os : [ubuntu-latest , macos-latest ]
13
+ os : [ubuntu-22.04 , macos-13, macos-15 ]
12
14
runs-on : ${{ matrix.os }}
13
15
steps :
14
16
- name : Set up Homebrew
15
17
id : set-up-homebrew
16
18
uses : Homebrew/actions/setup-homebrew@master
17
19
18
20
- name : Cache Homebrew Bundler RubyGems
19
- id : cache
20
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-
25
-
26
- - name : Install Homebrew Bundler RubyGems
27
- if : steps.cache.outputs.cache-hit != 'true'
28
- run : brew install-bundler-gems
24
+ key : ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
25
+ restore-keys : ${{ matrix.os }}-rubygems-
29
26
30
27
- run : brew test-bot --only-cleanup-before
31
28
38
35
39
36
- name : Upload bottles as artifact
40
37
if : always() && github.event_name == 'pull_request'
41
- uses : actions/upload-artifact@main
38
+ uses : actions/upload-artifact@v4
42
39
with :
43
- name : bottles
40
+ name : bottles_${{ matrix.os }}
44
41
path : ' *.bottle.*'
You can’t perform that action at this time.
0 commit comments