Browse Source

Update Sophia.yml

pull/378/head
Dmitry Nefedov 2 years ago
committed by GitHub
parent
commit
af491e1098
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      .github/workflows/Sophia.yml

20
.github/workflows/Sophia.yml

@ -25,8 +25,8 @@ jobs:
$LatestPolicyFileEditorVersion = (Invoke-RestMethod @Parameters).tag_name $LatestPolicyFileEditorVersion = (Invoke-RestMethod @Parameters).tag_name
$Parameters = @{ $Parameters = @{
Uri = "https://github.com/dlwyatt/PolicyFileEditor/archive/refs/tags/3.0.1.zip" Uri = "https://github.com/dlwyatt/PolicyFileEditor/archive/refs/tags/$LatestPolicyFileEditorVersion.zip"
OutFile = "$PSScriptRoot\3.0.1.zip" OutFile = "$PSScriptRoot\$LatestPolicyFileEditorVersion.zip"
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
@ -34,7 +34,7 @@ jobs:
# Expand zip archive # Expand zip archive
$Parameters = @{ $Parameters = @{
Path = "$PSScriptRoot\3.0.1.zip" Path = "$PSScriptRoot\$LatestPolicyFileEditorVersion.zip"
DestinationPath = "$PSScriptRoot" DestinationPath = "$PSScriptRoot"
Force = $true Force = $true
Verbose = $true Verbose = $true
@ -42,16 +42,16 @@ jobs:
Expand-Archive @Parameters Expand-Archive @Parameters
$Path = @( $Path = @(
"$PSScriptRoot\PolicyFileEditor-3.0.1\DscResources", "$PSScriptRoot\PolicyFileEditor-$LatestPolicyFileEditorVersion\DscResources",
"$PSScriptRoot\PolicyFileEditor-3.0.1\en-US", "$PSScriptRoot\PolicyFileEditor-$LatestPolicyFileEditorVersion\en-US",
"$PSScriptRoot\PolicyFileEditor-3.0.1\build.psake.ps1", "$PSScriptRoot\PolicyFileEditor-$LatestPolicyFileEditorVersion\build.psake.ps1",
"$PSScriptRoot\PolicyFileEditor-3.0.1\LICENSE", "$PSScriptRoot\PolicyFileEditor-$LatestPolicyFileEditorVersion\LICENSE",
"$PSScriptRoot\PolicyFileEditor-3.0.1\PolicyFileEditor.Tests.ps1", "$PSScriptRoot\PolicyFileEditor-$LatestPolicyFileEditorVersion\PolicyFileEditor.Tests.ps1",
"$PSScriptRoot\PolicyFileEditor-3.0.1\README.md" "$PSScriptRoot\PolicyFileEditor-$LatestPolicyFileEditorVersion\README.md"
) )
Remove-Item -Path $Path -Recurse -Force Remove-Item -Path $Path -Recurse -Force
Rename-Item -Path "$PSScriptRoot\PolicyFileEditor-3.0.1" -NewName "$PSScriptRoot\PolicyFileEditor" -Force Rename-Item -Path "$PSScriptRoot\PolicyFileEditor-$LatestPolicyFileEditorVersion" -NewName "$PSScriptRoot\PolicyFileEditor" -Force
# Download Microsoft.Windows.SDK.NET.dll & WinRT.Runtime.dll # Download Microsoft.Windows.SDK.NET.dll & WinRT.Runtime.dll
$Parameters = @{ $Parameters = @{

Loading…
Cancel
Save