ci/gki-kernel: run the sed command for BAZEL only if BUILD.bazel exists to avoid file not found error on non BAZEL kernel common tree

This commit is contained in:
Rifat Azad
2025-05-01 11:48:41 +06:00
committed by GitHub
parent 5565a6b3f8
commit 4f35240203

View File

@@ -198,7 +198,9 @@ jobs:
- name: Make working directory clean to avoid dirty
working-directory: android-kernel
run: |
if [ -f ./common/BUILD.bazel ]; then
sed -i '/^[[:space:]]*"protected_exports_list"[[:space:]]*:[[:space:]]*"android\/abi_gki_protected_exports_aarch64",$/d' ./common/BUILD.bazel
fi
rm common/android/abi_gki_protected_exports_* || echo "No protected exports!"
git config --global user.email "bot@kernelsu.org"
git config --global user.name "KernelSU-NextBot"