mirror of
https://github.com/caty21/forex-dashboard.git
synced 2026-07-27 20:37:45 +00:00
auto: sync 2026-06-01 23:25
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
$repo = "C:\Users\capug\Documents\Private\Investissements\Trading\Code\forex-dashboard"
|
||||||
|
|
||||||
|
while ($true) {
|
||||||
|
Set-Location $repo
|
||||||
|
$status = git status --porcelain
|
||||||
|
if ($status) {
|
||||||
|
Write-Host "$(Get-Date -Format 'HH:mm:ss') - Modifications detectees, commit + push..."
|
||||||
|
git add -A
|
||||||
|
git commit -m "auto: sync $(Get-Date -Format 'yyyy-MM-dd HH:mm')"
|
||||||
|
git push origin main
|
||||||
|
Write-Host "$(Get-Date -Format 'HH:mm:ss') - Push OK"
|
||||||
|
} else {
|
||||||
|
Write-Host "$(Get-Date -Format 'HH:mm:ss') - Rien a pusher"
|
||||||
|
}
|
||||||
|
Start-Sleep -Seconds 300
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user