From 7695f4d563d0bd66644876f5c7ebf61ddb5901af Mon Sep 17 00:00:00 2001 From: Ninjdai Date: Wed, 20 Aug 2025 11:10:41 +0200 Subject: [PATCH] fix(ci): add flutter tool cache as safe git directory --- .forgejo/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index ad619e1..a321284 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -10,6 +10,8 @@ jobs: - name: Setup Flutter SDK run: | export SETUP_FLUTTER_BRANCH=main - curl -fsSL https://raw.githubusercontent.com/flutter-actions/setup-flutter/${SETUP_FLUTTER_BRANCH}/install.sh | bash -s -- 3.35.1 stable + export FLUTTER_VERSION=3.35.1 + git config --global --add safe.directory /workspace/UEAuvergne/Seshat/.setup-flutter/tool_cache/flutter/${FLUTTER_VERSION}/stable/flutter + curl -fsSL https://raw.githubusercontent.com/flutter-actions/setup-flutter/${SETUP_FLUTTER_BRANCH}/install.sh | bash -s -- ${FLUTTER_VERSION} stable - run: bash scripts/build-web.sh - run: sshpass -p "${{ secrets.DEPLOY_PASSWORD }}" scp -o StrictHostKeyChecking=accept-new -rp build/web ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_ADDRESS }}:${{ secrets.DEPLOY_PATH }}