Files
scripts/tests/test_log.ps1

10 lines
379 B
PowerShell

# Script: test_log.ps1
# Objetivo: Crear un archivo de registro para confirmar la ejecución.
$LogPath = "C:\TEMP\safecloud_test_success.log"
$Timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
$Content = "Prueba de Gitea y Action1 exitosa. El script se ejecutó el $Timestamp"
# Escribe el contenido en el archivo de registro
Set-Content -Path $LogPath -Value $Content -Force