Files
jobtrackingapp/scripts/gitea-backlog.ps1
T
cesnimda c05d6f8906
CI and Deploy / test (pull_request) Failing after 7m16s
CI and Deploy / deploy (pull_request) Has been skipped
Establish Gitea backlog workflow and reconcile Project 1
2026-12-02 18:30:39 +01:00

15 lines
584 B
PowerShell

param([Parameter(ValueFromRemainingArguments=$true)][string[]]$Options)
$ErrorActionPreference = 'Stop'
$wasSet = Test-Path Env:GITEA_TOKEN
try {
$path = Join-Path $env:LOCALAPPDATA 'JobbJakt-Gitea-token.xml'
if (-not $wasSet -and (Test-Path -LiteralPath $path)) {
$env:GITEA_TOKEN = [Net.NetworkCredential]::new('', (Import-Clixml -LiteralPath $path)).Password
}
python -X utf8 "$PSScriptRoot/gitea_backlog.py" @Options
$result = $LASTEXITCODE
} finally {
if (-not $wasSet) { Remove-Item Env:GITEA_TOKEN -ErrorAction SilentlyContinue }
}
exit $result