CI: Token-Laengen-Diagnose im Gitea-Upload-Schritt entfernt

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-21 00:49:46 +02:00
co-authored by Claude Opus 4.8
parent 9a61cad54b
commit 450428e7f7
+1 -3
View File
@@ -119,10 +119,8 @@ jobs:
MSI_NAME: ${{ steps.build.outputs.MSI_NAME }}
COMMIT_SHA: ${{ github.sha }}
run: |
$tokLen = if ([string]::IsNullOrEmpty($env:GITEA_TOKEN)) { 0 } else { $env:GITEA_TOKEN.Length }
Write-Host "Diagnose: GITEA_TOKEN Laenge = $tokLen (0 = Secret erreicht den Lauf nicht)"
if ([string]::IsNullOrWhiteSpace($env:GITEA_TOKEN)) {
Write-Host "::warning::GITEA_TOKEN leer (Laenge=$tokLen) — Gitea-Upload uebersprungen. Muss ein REPOSITORY-Secret sein unter Settings > Secrets and variables > Actions (Tab 'Secrets', NICHT 'Variables'), Name exakt GITEA_TOKEN, im Repo mwende/Intune-Manager."
Write-Host "::notice::GITEA_TOKEN nicht gesetzt — Gitea-Upload uebersprungen."
exit 0
}
$headers = @{ Authorization = "token $env:GITEA_TOKEN" }