🐛 fixes git option under the Gitea Action

This commit is contained in:
Jan Andrle 2024-08-01 16:55:14 +02:00
parent 9f2f60fa01
commit 8bc74fc29c
Signed by: jaandrle
GPG Key ID: B3A25AED155AFFAB
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);

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "mastodon-cz-stats",
"version": "1.0.0",
"version": "1.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mastodon-cz-stats",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"bin": {
"mastodon-cz-stats": "mastodonCzStats.js"

View File

@ -1,6 +1,6 @@
{
"name": "mastodon-cz-stats",
"version": "1.0.0",
"version": "1.0.1",
"description": "Experimentální skript k získání českých Mastodon instancí a dodatečných informací.",
"bin": "mastodonCzStats.js",
"scripts": {