Skip to content

Commit b42d395

Browse files
committed
fix: update tap CI
1 parent b2b9706 commit b42d395

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
name: brew pr-pull
2+
23
on:
34
pull_request_target:
45
types:
56
- labeled
7+
68
jobs:
79
pr-pull:
810
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
911
runs-on: ubuntu-22.04
1012
permissions:
1113
contents: write
12-
packages: none
1314
pull-requests: write
1415
steps:
1516
- name: Set up Homebrew
@@ -21,10 +22,8 @@ jobs:
2122
- name: Pull bottles
2223
env:
2324
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
24-
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ github.token }}
25-
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }}
2625
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"
2827

2928
- name: Push commits
3029
uses: Homebrew/actions/git-try-push@master
@@ -36,4 +35,4 @@ jobs:
3635
if: github.event.pull_request.head.repo.fork == false
3736
env:
3837
BRANCH: ${{ github.event.pull_request.head.ref }}
39-
run: git push --delete origin $BRANCH
38+
run: git push --delete origin "$BRANCH"

.github/workflows/tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: brew test-bot
2+
23
on:
34
push:
45
branches:
56
- main
67
pull_request:
8+
79
jobs:
810
test-bot:
911
strategy:
@@ -16,12 +18,11 @@ jobs:
1618
uses: Homebrew/actions/setup-homebrew@master
1719

1820
- name: Cache Homebrew Bundler RubyGems
19-
id: cache
20-
uses: actions/cache@v3
21+
uses: actions/cache@v4
2122
with:
2223
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-
2526

2627
- run: brew test-bot --only-cleanup-before
2728

@@ -34,7 +35,7 @@ jobs:
3435

3536
- name: Upload bottles as artifact
3637
if: always() && github.event_name == 'pull_request'
37-
uses: actions/upload-artifact@v3
38+
uses: actions/upload-artifact@v4
3839
with:
39-
name: bottles
40+
name: bottles_${{ matrix.os }}
4041
path: '*.bottle.*'

0 commit comments

Comments
 (0)