Skip to content

Commit 40f8194

Browse files
committed
Use GitHub token for livecheck
To prevent script execution failures that frequently occur due to GitHub API rate limits, a GitHub token is passed to the script for livecheck.
1 parent ab736af commit 40f8194

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check for packages updates
1+
name: brew livecheck
22

33
on:
44
schedule:
@@ -7,14 +7,15 @@ on:
77

88
jobs:
99
check:
10-
name: Check for packages updates
10+
name: livecheck
1111
runs-on: macos-14
1212
steps:
13-
- run: brew tap sqlitebrowser/tap
13+
- run: brew tap $GITHUB_REPOSITORY
1414

1515
- name: Run the script
1616
env:
1717
ASSIGNEES: ${{ vars.ASSIGNEES }}
1818
GITHUB_REPO: ${{ github.repository }}
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
run: curl https://raw.githubusercontent.com/sqlitebrowser/homebrew-tap/refs/heads/main/.github/scripts/check-update.py | python3
20+
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: python3 "$(brew --prefix)/Library/Taps/${GITHUB_REPOSITORY}/.github/scripts/check-update.py"

0 commit comments

Comments
 (0)