ci: Look for changed packages in the PR branch only

Fixes https://github.com/openwrt/packages/issues/15267.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 6b2294ac37)
This commit is contained in:
Jeffery To 2022-05-11 17:21:52 +08:00 committed by Paul Spooren
parent 010e155408
commit 32cb5b461c
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ jobs:
run: |
# only detect packages with changes
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