Add test_log.ps1
This commit is contained in:
10
test_log.ps1
Normal file
10
test_log.ps1
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# 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
|
||||||
Reference in New Issue
Block a user