🐛 fixes git option under the Gitea Action

This commit is contained in:
2024-08-01 16:55:14 +02:00
parent 9f2f60fa01
commit 8bc74fc29c
3 changed files with 4 additions and 3 deletions

View File

@ -28,6 +28,7 @@ $.api("", true)
instances_cz: stats.sort((a, b)=> b.registrations-a.registrations),
sum: stats.reduce((acc, stats) => sumStats([acc, stats]), { statuses: 0, logins: 0, registrations: 0, mau: 0, user_count: 0 })
};
if(is_git) s.run`git pull --rebase`;
echo(JSON.stringify(out, null, " ")).to(store);
if(is_git) gitCommit([ store ], "cron");
$.exit(0);