Skip to content

Commit

Permalink
fix: split out logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Feb 11, 2024
1 parent bb5d42d commit d24b9d0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/check-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:

- name: Detect references
run: |
for patch in $(find -name "*.patch"); do
git -C "homebrew-core" grep -r "${patch/./}"
patches=$(find -name "*.patch")
status=0
for patch in $patches; do
if ! git -C "homebrew-core" grep -r "${patch/./}" > /dev/null; then
echo "$patch not needed!"
status=1
fi
done
exit $status

0 comments on commit d24b9d0

Please sign in to comment.