From 731dda965bacee0f0bf278444abe5859932f33cf Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:19:49 +0800 Subject: [PATCH] Update upstream.yml --- .github/workflows/upstream.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml index a5602e254..90c2c9fc1 100644 --- a/.github/workflows/upstream.yml +++ b/.github/workflows/upstream.yml @@ -559,13 +559,16 @@ jobs: ( for pkg in $(ls -d */ | grep -v "naiveproxy" | grep -v "luci-app-store" | grep -v "luci-app-quickstart"); do + if [[ $pkg == luci-* ]]; then + sed -i '/^[[:space:]]*PKG_\(VERSION\|RELEASE\):*=/d' $pkg/Makefile || true + else if [[ "$(grep "PKG_VERSION" $pkg/Makefile)" && ! "$(grep "PKG_RELEASE" $pkg/Makefile)" ]]; then - sed -i "s/\(PKG_VERSION:=.*\)/\1\nPKG_RELEASE:=/" $pkg/Makefile || true + sed -i "s/\(PKG_VERSION:=.*\)/\1\nPKG_RELEASE:=/" $pkg/Makefile || true fi if [ "$(grep "PKG_RELEASE" $pkg/Makefile)" ]; then sed -i "s/PKG_RELEASE:=.*/PKG_RELEASE:=$(git rev-list --count main $pkg)/" $pkg/Makefile || true - fi - + fi + fi done touch /tmp/ok2 ) &