From e7149806006c504fbf283f587515b1aee60f9f24 Mon Sep 17 00:00:00 2001 From: wtclaude Date: Sun, 19 Jul 2026 13:43:31 -0500 Subject: [PATCH] ci(android): stop yes|sdkmanager SIGPIPE from failing the step The SDK install succeeds (reaches 100% unzip) but the step reported exit 141: with -o pipefail, 'yes' dying of SIGPIPE (128+13) once sdkmanager closes the pipe poisons the pipeline status. Disable pipefail for that line so only sdkmanager's exit gates success. Co-Authored-By: Claude --- .gitea/workflows/pr-checks.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pr-checks.yml b/.gitea/workflows/pr-checks.yml index 2e4b7f8..8917e43 100644 --- a/.gitea/workflows/pr-checks.yml +++ b/.gitea/workflows/pr-checks.yml @@ -44,9 +44,14 @@ jobs: uses: android-actions/setup-android@v3 # Install exactly what the build targets so it never depends on AGP's - # build-time auto-download. `yes |` accepts any license prompts. + # build-time auto-download. `yes |` accepts any license prompts; `set + # +o pipefail` so `yes` dying with SIGPIPE (exit 141) once sdkmanager + # closes the pipe doesn't fail the step -- sdkmanager's own exit, last in + # the pipeline, still gates success. - name: Install Android SDK packages - run: yes | sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0" + run: | + set +o pipefail + yes | sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0" - name: Cache Gradle uses: actions/cache@v4