-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add GitHub Actions workflow for automatic Homebrew formula update
- Loading branch information
yossydev
committed
Oct 29, 2023
1 parent
335a98f
commit e0c6256
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Bump Homebrew Formula | ||
on: | ||
push: | ||
branches: [main] | ||
jobs: | ||
homebrew: | ||
name: Bump Homebrew formula | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Extract version | ||
id: extract-version | ||
run: | | ||
echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
- name: Bump Homebrew formula | ||
uses: mislav/bump-homebrew-formula-action@v3 | ||
with: | ||
formula-name: rando_lgtm | ||
formula-path: rando_lgtm.rb | ||
homebrew-tap: yossydev/homebrew-RandoLGTM | ||
base-branch: main | ||
download-url: https://github.com/yossydev/RandoLGTM/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz | ||
commit-message: | | ||
rando_lgtm ${{ steps.extract-version.outputs.tag-name }} | ||
Created by https://github.com/mislav/bump-homebrew-formula-action | ||
env: | ||
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }} |