diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d59f24..1dbd0ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -119,8 +119,10 @@ 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 "::notice::GITEA_TOKEN nicht gesetzt — Gitea-Upload uebersprungen." + 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." exit 0 } $headers = @{ Authorization = "token $env:GITEA_TOKEN" }