Skip to content

Commit c60edb5

Browse files
Update daily.yml
1 parent 33e2956 commit c60edb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/daily.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ jobs:
6262
$sftp_script_path = "$env:TEMP\sftp_script.txt"
6363
$sftp_script | Out-File -FilePath $sftp_script_path
6464
65-
# Use PSFTP to upload the file via SFTP
66-
& "$env:TEMP\psftp.exe" -batch -pw $env:FTP_PASSWORD $env:FTP_USERNAME@$env:FTP_SERVER -b $sftp_script_path
65+
# Use PSFTP to upload the file via SFTP with host key checking disabled
66+
& "$env:TEMP\psftp.exe" -batch -o StrictHostKeyChecking=no -pw $env:FTP_PASSWORD $env:FTP_USERNAME@$env:FTP_SERVER -b $sftp_script_path
6767
6868
# Cleanup the temporary script file
6969
Remove-Item $sftp_script_path

0 commit comments

Comments
 (0)