Skip to content

Commit

Permalink
Revise homebrew workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cantunca-pointr committed May 18, 2023
1 parent 354ff9e commit 7eb8d23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
pull_request_target:
types:
- labeled
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
Expand All @@ -20,6 +22,7 @@ jobs:
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ github.token }}
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }}
PULL_REQUEST: ${{ github.event.pull_request.number }}
HOMEBREW_NO_INSTALL_FROM_API: 1
run: brew pr-pull --debug --tap=$GITHUB_REPOSITORY $PULL_REQUEST

- name: Push commits
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- develop
pull_request:
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
jobs:
test-bot:
strategy:
Expand All @@ -14,6 +16,8 @@ jobs:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
token: ${{ github.token }}

- name: Cache Homebrew Bundler RubyGems
id: cache
Expand Down

0 comments on commit 7eb8d23

Please sign in to comment.