From 4f35240203460e65e2f9cfa9f6e38ce5593c10f1 Mon Sep 17 00:00:00 2001 From: Rifat Azad <33044977+rifsxd@users.noreply.github.com> Date: Thu, 1 May 2025 11:48:41 +0600 Subject: [PATCH] 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 --- .github/workflows/gki-kernel.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gki-kernel.yml b/.github/workflows/gki-kernel.yml index 86a36555..0baddffb 100644 --- a/.github/workflows/gki-kernel.yml +++ b/.github/workflows/gki-kernel.yml @@ -198,7 +198,9 @@ jobs: - name: Make working directory clean to avoid dirty working-directory: android-kernel run: | - sed -i '/^[[:space:]]*"protected_exports_list"[[:space:]]*:[[:space:]]*"android\/abi_gki_protected_exports_aarch64",$/d' ./common/BUILD.bazel + 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"