Add github auto update

This commit is contained in:
2021-11-10 19:01:09 +01:00
parent 6ec19a5e2e
commit 573efea8b0
6 changed files with 326 additions and 129 deletions

View File

@@ -2,6 +2,7 @@ import Logger from '@ioc:Adonis/Core/Logger'
import Env from '@ioc:Adonis/Core/Env'
import axios from 'axios'
import DevelopmentHour from 'App/Models/DevelopmentHour'
import { UpdateGithubReadme } from 'App/Utils/UpdateGithubReadme'
const MS = 1000 * 5 * 60 // 5 min
let taskId
@@ -32,6 +33,8 @@ async function getDevelopmentHours(): Promise<void> {
seconds: data.seconds,
})
}
await UpdateGithubReadme()
}
}