From 0362a4d1649c2ebfc77c6d73b86b14dc31a3b145 Mon Sep 17 00:00:00 2001 From: wtclaude Date: Sun, 19 Jul 2026 13:26:37 -0500 Subject: [PATCH] ci(android): chmod +x gradlew in-step (runner drops exec bit) Setting the git executable bit (100755) wasn't enough: this Gitea/act runner's checkout doesn't preserve file modes, so './gradlew' still failed with 'Permission denied' (exit 126). chmod the wrapper in the run step itself so the build is independent of how checkout handles modes. Co-Authored-By: Claude --- .gitea/workflows/pr-checks.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pr-checks.yml b/.gitea/workflows/pr-checks.yml index e139d5e..2e4b7f8 100644 --- a/.gitea/workflows/pr-checks.yml +++ b/.gitea/workflows/pr-checks.yml @@ -58,5 +58,9 @@ jobs: restore-keys: | gradle-${{ runner.os }}- + # chmod defensively: this runner's checkout doesn't preserve the git + # executable bit, so `./gradlew` alone fails with "Permission denied". - name: Lint, test, assemble debug - run: ./gradlew --no-daemon lint test assembleDebug + run: | + chmod +x ./gradlew + ./gradlew --no-daemon lint test assembleDebug