ci: Look for changed packages in the PR branch only
authorJeffery To <jeffery.to@gmail.com>
Wed, 11 May 2022 09:21:52 +0000 (17:21 +0800)
committerPaul Spooren <mail@aparcar.org>
Mon, 16 May 2022 09:20:14 +0000 (11:20 +0200)
Fixes https://github.com/openwrt/packages/issues/15267.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6b2294ac379ecae55993a8faa583910423f620e7)

.github/workflows/multi-arch-test-build.yml

index 3aa71c26b63930f6089b3ab45cee1d9a69b4f99f..ed5dc366abd5dd9c11f90a96982b0ccc851c26bb 100644 (file)
@@ -68,7 +68,7 @@ jobs:
           PKG_ROOTS=$(find . -name Makefile | \
             grep -v ".*/src/Makefile" | \
             sed -e 's@./\(.*\)/Makefile@\1/@')
-          CHANGES=$(git diff --diff-filter=d --name-only origin/$BRANCH)
+          CHANGES=$(git diff --diff-filter=d --name-only origin/$BRANCH...)
 
           for ROOT in $PKG_ROOTS; do
             for CHANGE in $CHANGES; do