We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dd225d commit 7abb1d6Copy full SHA for 7abb1d6
Tests/GitHubReleases.tests.ps1
@@ -721,8 +721,12 @@ try
721
722
AfterAll {
723
$release | Remove-GitHubRelease -Force
724
- Remove-Item -Path $downloadedZipFile -ErrorAction SilentlyContinue
+
725
Remove-Item -Path $tempPath -Recurse -ErrorAction SilentlyContinue -Force
726
+ if (Get-Variable -Name downloadedZipFile -ErrorAction SilentlyContinue)
727
+ {
728
+ Remove-Item -Path $downloadedZipFile -ErrorAction SilentlyContinue
729
+ }
730
}
731
732
$asset = $release | New-GitHubReleaseAsset -Path $zipFile -ContentType 'application/zip'
0 commit comments