File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 16
16
environment : production
17
17
steps :
18
18
- name : Azure login
19
- uses : azure/login@v1
19
+ uses : azure/login@v2
20
20
with :
21
21
client-id : ${{ secrets.AZURE_CLIENT_ID }}
22
22
tenant-id : ${{ secrets.AZURE_TENANT_ID }}
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ if (-not $PathToD3d12info) {
4
4
Write-Output " Downloading D3d12info"
5
5
$TempFolder = Join-Path - Path $env: TEMP - ChildPath " d3d12infogui_build"
6
6
$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
+ }
8
10
New-Item - ItemType Directory - Path $TempFolder
9
11
New-Item - ItemType Directory - Path $PathToD3d12info
10
12
$JSONURL = " https://api.github.com/repos/sawickiap/D3d12info/releases/latest"
@@ -13,7 +15,7 @@ if (-not $PathToD3d12info) {
13
15
$JSON = Invoke-WebRequest - UseBasicParsing - Uri $JSONURL
14
16
$ProgressPreference = $PrevProgressPreference
15
17
$ParsedJSON = ConvertFrom-Json - InputObject $JSON
16
- Write-Output " Lateste D3d12info release - $ ( $ParsedJSON.tag_name ) "
18
+ Write-Output " Latest D3d12info release - $ ( $ParsedJSON.tag_name ) "
17
19
$Assets = Select-Object - InputObject $ParsedJSON - ExpandProperty assets
18
20
$IsDownloaded = $false
19
21
Foreach ($Asset IN $Assets )
You can’t perform that action at this time.
0 commit comments