Periodically commit pending changes in all local projects

This commit is contained in:
Ohad Livne 2025-06-04 22:47:32 +03:00
parent 01085f3746
commit fb15ba44c1
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,10 @@
[Unit]
Description=Commit changes in local project repositories
Wants=sync-git-repos.timer
[Service]
WorkingDirectory=%h
ExecStart=%h/.local/bin/sync-git-repos
[Install]
WantedBy=default.target

View file

@ -0,0 +1,10 @@
[Unit]
Description=Periodic repository commit
Requires=sync-git-repos.service
[Timer]
Unit=sync-git-repos.service
OnCalendar=*:15,45
[Install]
WantedBy=timers.target