Skip to content

Commit 835c167

Browse files
committed
minor CI/CD fixes
1 parent 3936455 commit 835c167

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/Package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
environment: production
1717
steps:
1818
- name: Azure login
19-
uses: azure/login@v1
19+
uses: azure/login@v2
2020
with:
2121
client-id: ${{ secrets.AZURE_CLIENT_ID }}
2222
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

build_scripts/package.ps1

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ if (-not $PathToD3d12info) {
44
Write-Output "Downloading D3d12info"
55
$TempFolder = Join-Path -Path $env:TEMP -ChildPath "d3d12infogui_build"
66
$PathToD3d12info = Join-Path -Path $TempFolder -ChildPath "D3d12info"
7-
Remove-Item -Recurse -Force $TempFolder
7+
if (Test-Path $TempFolder) {
8+
Remove-Item -Recurse -Force $TempFolder
9+
}
810
New-Item -ItemType Directory -Path $TempFolder
911
New-Item -ItemType Directory -Path $PathToD3d12info
1012
$JSONURL = "https://api.github.com/repos/sawickiap/D3d12info/releases/latest"
@@ -13,7 +15,7 @@ if (-not $PathToD3d12info) {
1315
$JSON = Invoke-WebRequest -UseBasicParsing -Uri $JSONURL
1416
$ProgressPreference = $PrevProgressPreference
1517
$ParsedJSON = ConvertFrom-Json -InputObject $JSON
16-
Write-Output "Lateste D3d12info release - $($ParsedJSON.tag_name)"
18+
Write-Output "Latest D3d12info release - $($ParsedJSON.tag_name)"
1719
$Assets = Select-Object -InputObject $ParsedJSON -ExpandProperty assets
1820
$IsDownloaded = $false
1921
Foreach ($Asset IN $Assets)

0 commit comments

Comments
 (0)