From bb5d42d6b5ee67e4ea20ec45f2e643582eaf4997 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Sun, 11 Feb 2024 16:31:27 +0100 Subject: [PATCH] feat: add CI to detect references --- .github/workflows/check-reference.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/check-reference.yml diff --git a/.github/workflows/check-reference.yml b/.github/workflows/check-reference.yml new file mode 100644 index 00000000..6927a44b --- /dev/null +++ b/.github/workflows/check-reference.yml @@ -0,0 +1,28 @@ +name: Check patch references + +on: + push: + branches-ignore: + - dependabot/** + schedule: + # Once every day at midnight UTC + - cron: "0 0 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - name: Checkout patches + uses: actions/checkout@v4 + + - name: Checkout core + uses: actions/checkout@v4 + with: + repository: 'homebrew/homebrew-core' + path: homebrew-core + + - name: Detect references + run: | + for patch in $(find -name "*.patch"); do + git -C "homebrew-core" grep -r "${patch/./}" + done