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 16, 2024
1 parent a8bc204 commit 6f709dc
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/monitor-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Monitor Homebrew Formula

on: workflow_dispatch

env:
file_changed: false

jobs:
check-and-update:
runs-on: ubuntu-latest
Expand All @@ -24,7 +27,9 @@ jobs:
fi
- name: Create a new branch if file has changed
if: env.file_changed == 'true'
env:
file_changed: ${{ steps.compare.outputs.file_changed }}
if: $file_changed == 'true'
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
Expand All @@ -33,13 +38,4 @@ jobs:
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
- name: Create a pull request
if: env.file_changed == 'true'
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-chapel-main
title: 'Update chapel-main.rb'
body: 'This pull request updates chapel-main.rb with the latest changes from chapel.rb.'
labels: 'auto-update'
echo "Homebrew has updated the formula!"

0 comments on commit 6f709dc

Please sign in to comment.