Update formula #39
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
name: Update formula | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install maltmill | |
run: | | |
brew install Songmu/tap/maltmill | |
- name: Update formula | |
run: | | |
maltmill -w rf.rb | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test formula | |
shell: bash | |
run: | | |
mkdir -p $(brew --repo)/Library/Taps/buty4649/homebrew-tap | |
cp -Rp . $(brew --repo)/Library/Taps/buty4649/homebrew-tap | |
brew install buty4649/homebrew-tap/rf | |
- name: Commit and push | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
file_pattern: "*.rb" | |
commit_message: Update formula |