From b6178b630b45c4aaf6e6a8b8617cccc02318cfbe Mon Sep 17 00:00:00 2001 From: Gulum Date: Sat, 6 Jun 2026 20:03:18 +0200 Subject: [PATCH] =?UTF-8?q?fix(ci):=20dotnet-ef=20Tool-Install=20idempoten?= =?UTF-8?q?t=20(tool=20update)=20=E2=80=94=20self-hosted=20Runner=20persis?= =?UTF-8?q?tiert=20--global?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'tool install --global' schlug ab dem 2. Lauf mit 'already installed' fehl (Tools persistieren auf dem self-hosted Runner) → Backend-Job rot seit DB-3, noch VOR dem Drift-Check. 'tool update' ist installiert-oder-aktualisiert = idempotent. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2974dd0..02545eb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -49,7 +49,10 @@ jobs: run: dotnet build GerbilManager.slnx --no-restore -c Release - name: dotnet-ef Tool installieren - run: dotnet tool install --global dotnet-ef --version 10.0.* + # 'tool update' ist idempotent (installiert wenn fehlend, sonst aktualisiert) — + # auf dem SELF-HOSTED Runner persistieren --global Tools, daher schlug 'tool install' + # ab dem 2. Lauf mit 'already installed' fehl und kippte den Backend-Job. + run: dotnet tool update --global dotnet-ef --version 10.0.* - name: DB-3 EF Migrations Drift-Check # Fails CI if the EF model diverges from the snapshot (i.e. a code change touched