From 76039a4eef215eb047d12342be15abe6f3d847e2 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Mon, 27 Sep 2021 23:10:50 +0300 Subject: [PATCH] Update Sophia.yml --- .github/workflows/Sophia.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/Sophia.yml b/.github/workflows/Sophia.yml index 1c143240..234125d6 100644 --- a/.github/workflows/Sophia.yml +++ b/.github/workflows/Sophia.yml @@ -25,7 +25,7 @@ jobs: Write-Verbose -Message "Sophia Script for Windows 10 v$LatestRelease" -Verbose Write-Verbose -Message "Sophia.Script.for.Windows.10.v$LatestRelease.zip" -Verbose - Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10" -Recurse -Force | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease" -Recurse -Force + Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10" -Force | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease" -Recurse -Force $Parameters = @{ Path = "Sophia Script for Windows 10 v$LatestRelease" @@ -53,7 +53,7 @@ jobs: Write-Verbose -Message "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Verbose Write-Verbose -Message "Sophia.Script.for.Windows.10.v$LatestRelease.PowerShell.7.zip" -Verbose - Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 PowerShell 7" -Recurse | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Recurse -Force + Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 PowerShell 7" -Force | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Recurse -Force # Download Microsoft.Windows.SDK.NET.Ref $Parameters = @{ @@ -139,7 +139,7 @@ jobs: Write-Verbose -Message "Sophia Script for Windows 10 LTSC v$LatestRelease" -Verbose Write-Verbose -Message "Sophia.Script.for.Windows.10.LTSC.v$LatestRelease.zip" -Verbose - Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 LTSC" -Recurse -Force | Copy-Item -Destination "Sophia Script for Windows 10 LTSC v$LatestRelease" -Recurse -Force + Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 LTSC" -Force | Copy-Item -Destination "Sophia Script for Windows 10 LTSC v$LatestRelease" -Recurse -Force $Parameters = @{ Path = "Sophia Script for Windows 10 LTSC v$LatestRelease" @@ -166,7 +166,7 @@ jobs: Write-Verbose -Message "Sophia Script for Windows 11 v$LatestRelease" -Verbose Write-Verbose -Message "Sophia.Script.for.Windows.11.v$LatestRelease.zip" -Verbose - Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11" -Recurse -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease" -Recurse -Force + Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11" -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease" -Recurse -Force $Parameters = @{ Path = "Sophia Script for Windows 11 v$LatestRelease" @@ -193,7 +193,7 @@ jobs: Write-Verbose -Message "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Verbose Write-Verbose -Message "Sophia.Script.for.Windows.11.v$LatestRelease.PowerShell.7.zip" -Verbose - Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11 PowerShell 7" -Recurse -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Recurse -Force + Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11 PowerShell 7" -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Recurse -Force $Parameters = @{ Path = "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" @@ -219,7 +219,7 @@ jobs: Write-Verbose -Message "Sophia Script Wrapper v$LatestRelease" -Verbose Write-Verbose -Message "Sophia.Script.Wrapper.v$LatestRelease.zip" -Verbose - Get-ChildItem -Path Wrapper -Exclude README.md -Recurse -Force | Copy-Item -Destination "Sophia Script Wrapper v$LatestRelease" -Recurse -Force + Get-ChildItem -Path Wrapper -Exclude README.md -Force | Copy-Item -Destination "Sophia Script Wrapper v$LatestRelease" -Recurse -Force $Parameters = @{ Path = "Sophia Script Wrapper v$LatestRelease" @@ -229,7 +229,7 @@ jobs: Compress-Archive @Parameters # Calculate hash - Get-ChildItem -Path "Sophia.Script.Wrapper.v$LatestRelease.zip" -Force | ForEach-Object -Process { + Get-Item -Path "Sophia.Script.Wrapper.v$LatestRelease.zip" -Force | ForEach-Object -Process { "$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)" } | Add-Content -Path SHA256SUM -Encoding Default -Force