Update Homebrew Formula #35
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 Homebrew Formula | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
make_formula: | |
name: Make Formula | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: make formula | |
run: ./bin/make_formula.sh | |
- name: commit and push | |
run: | | |
git config --global user.name 'Michael Kreil' | |
git config --global user.email '[email protected]' | |
if [ -n "$(git status --porcelain)" ]; then | |
git add Formula | |
git commit -m "update formula automatically" | |
git push | |
else | |
echo "no changes" | |
fi | |
shell: bash |