mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Invoke Move-Item and Rename-Item with retry after Extract-7Zip (#4598)
This commit is contained in:
committed by
GitHub
parent
af645a7b5e
commit
978ab79564
@@ -22,7 +22,9 @@ Extract-7Zip -Path $MysqlArchPath -DestinationPath "C:\"
|
||||
|
||||
# Rename mysql-version to mysql folder
|
||||
$MysqlPath = "C:\mysql"
|
||||
Rename-Item -Path "C:\mysql-${MysqlFullVersion}-winx64" -NewName $MysqlPath
|
||||
Invoke-SBWithRetry -Command {
|
||||
Rename-Item -Path "C:\mysql-${MysqlFullVersion}-winx64" -NewName $MysqlPath -ErrorAction Stop
|
||||
}
|
||||
|
||||
# Adding mysql in system environment path
|
||||
Add-MachinePathItem "${MysqlPath}\bin"
|
||||
|
||||
Reference in New Issue
Block a user