diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index 34eb3ab..c1954cf 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -32,4 +32,10 @@ jobs: run: | cd $env:INSTALLER_DIR .\APInstaller.CLI.exe --selfUpdate - \ No newline at end of file + if ($LASTEXITCODE -eq 1) { + Write-Host "No update available. Exiting with code 0 as success." + $LASTEXITCODE = 0 + } + if ($LASTEXITCODE -ne 0) { + throw "Update failed with exit code $LASTEXITCODE." + } \ No newline at end of file