diff --git a/.github/scripts/decrypt-secret.ps1 b/.github/scripts/decrypt-secret.ps1 index 0104a11b2..7b57298c7 100644 --- a/.github/scripts/decrypt-secret.ps1 +++ b/.github/scripts/decrypt-secret.ps1 @@ -7,17 +7,17 @@ $homePath = $env:HOME $rootPath = $env:GITHUB_WORKSPACE -$secretInputPath = $rootPath + "/.github/secrets" -$input = $secretInputPath + $filename +$secretInputPath = $rootPath + "\.github\secrets" +$input = $secretInputPath + "\" + $filename $passphrase = $env:DECRYPT_FILE_PASSWORD +$secretOutputPath = $homePath + "\secrets" if ([string]::IsNullOrEmpty($output)) { - $secretOutputPath = $homePath + "/secrets/" if($filename.EndsWith(".gpg")) { - $output = $secretOutputPath + $filename.TrimEnd(".gpg") + $output = $secretOutputPath + "\" + $filename.TrimEnd(".gpg") } else { - $output = $secretOutputPath + $filename + ".plaintext" + $output = $secretOutputPath + "\" + $filename + ".plaintext" } }