configuration for gitea notifications

This commit is contained in:
Mark Eaton
2026-01-24 21:53:16 -05:00
parent 4831074115
commit 6641b62415
5 changed files with 12 additions and 9 deletions
+2 -1
View File
@@ -8,13 +8,14 @@
# systemctl --user daemon-reload
[Unit]
Description=Run get_saint_of_the_day.py (profile stats updater)
OnFailure=notify-gitea-failure@%n.service
[Service]
Type=oneshot
EnvironmentFile=%h/.config/saints.env
ExecStartPre=/usr/bin/nm-online -q
ExecStartPre=/bin/bash -c 'for i in {1..30}; do getent hosts tildegit.org && exit 0; sleep 1; done; exit 1'
ExecStart=/bin/bash -lc 'cd ${REPO_PATH} && uv run get_saint_of_the_day.py'
ExecStart=/bin/bash -lc 'cd ${REPO_PATH} && uv run get_saint_of_the_day.py --post'
[Install]
WantedBy=default.target