From ee852e899f246ed5ef53a1149d5dc9bffea7e1e5 Mon Sep 17 00:00:00 2001 From: apoloz Date: Tue, 27 Feb 2024 12:34:01 +0000 Subject: [PATCH] ci(build): fix dir permissions and disable sunset warning --- .gitea/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 33e489f8..bf7886ff 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -31,15 +31,16 @@ jobs: pub-cache-key: 'flutter-pub:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache of dart pub get dependencies pub-cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path - - run: | - flutter --version + - name: fix dir permissions + run: | git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.19.0-x64 + flutter --version - name: Get dependencies run: flutter pub get - name: Run Code Metrics - run: flutter pub run dart_code_metrics:metrics lib + run: flutter pub run dart_code_metrics:metrics lib --disable-sunset-warning # - name: Build apk # run: flutter build apk