Skip to content

Commit

Permalink
feat: Add GitHub Actions workflow for automatic Homebrew formula update
Browse files Browse the repository at this point in the history
  • Loading branch information
yossydev committed Oct 29, 2023
1 parent 335a98f commit e0c6256
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
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 }}

0 comments on commit e0c6256

Please sign in to comment.