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"