diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 04acca7..a6b4e94 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -46,6 +46,18 @@ jobs: with: channel: 'stable' + - name: Trust Flutter SDK git directory + run: | + set -e + FLUTTER_BIN_DIR="$(dirname "$(command -v flutter)")" + FLUTTER_SDK_DIR="$(cd "$FLUTTER_BIN_DIR/.." && pwd -P)" + git config --global --add safe.directory "$FLUTTER_SDK_DIR" + if [ -n "${FLUTTER_ROOT:-}" ]; then + git config --global --add safe.directory "$FLUTTER_ROOT" + fi + # Runner-specific fallback observed in failing logs + git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.41.4-x64 || true + - name: Install dependencies run: flutter pub get