Skip to content

Commit

Permalink
Update monitor-homebrew.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arezaii authored Dec 20, 2024
1 parent d0c2735 commit 32a361f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/monitor-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@ jobs:
- name: Create a new branch if file has changed
if: ${{ env.file_changed == 'true' }}
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git config --global user.email "github-action-bot@email.com"
git config --global user.name "github action"
git checkout -b update-chapel-main
mv hb_master_chapel.rb chapel-main.rb
mv hb_master_chapel.rb util/packaging/homebrew/chapel-release.rb
git add chapel-main.rb
git commit -m "Update chapel-main.rb with changes from chapel.rb"
git push --set-upstream origin update-chapel-main
echo "Homebrew has updated the formula!"
echo "Homebrew has updated the formula!"
- name: create pull request
run: gh pr create -B main -H update-chapel-main --title 'Update our copy of the released Homebrew formula' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 32a361f

Please sign in to comment.