From 5afce165324e0f7074b181033d9bcb5e1580e448 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 20 Nov 2025 14:08:06 +0000 Subject: [PATCH] fix: create Android keystore directory before SDK license step Move the directory creation before the SDK license acceptance step to avoid permission issues. The directory will be created with normal user permissions, preventing the "Operation not permitted" errors when the SDK manager (running with sudo) tries to use it. --- .github/workflows/feature-branch-build.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/feature-branch-build.yaml b/.github/workflows/feature-branch-build.yaml index 52f6753..264db81 100644 --- a/.github/workflows/feature-branch-build.yaml +++ b/.github/workflows/feature-branch-build.yaml @@ -24,14 +24,14 @@ jobs: flutter-channel: stable java-version: 17 - - name: Accept Android SDK Licenses - run: | - yes | sudo $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses - - name: Prepare Android debug keystore directory run: | mkdir -p $HOME/.config/.android - sudo chmod -R 755 $HOME/.config/.android + chmod -R 755 $HOME/.config/.android + + - name: Accept Android SDK Licenses + run: | + yes | sudo $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses - name: Run build_runner to generate code run: flutter pub run build_runner build --delete-conflicting-outputs