Update CI: repos updater use only top 3

This commit is contained in:
Sergey Shorokhov 2024-10-25 12:41:08 +03:00
parent a5b3d3f7fc
commit ae6acfd5f6
2 changed files with 13 additions and 10 deletions

View File

@ -1,9 +1,12 @@
name: Update Repositories file name: Update Repositories file
on: on:
workflow_dispatch:
schedule: schedule:
- cron: "0 0 1 * *" - cron: "0 0 1 * *"
workflow_dispatch: push:
paths:
- scripts/fetchRepositories.ts
jobs: jobs:
update-repositories: update-repositories:

View File

@ -17,15 +17,15 @@ const repos: { author: string; repo: string }[] = [
{ author: 'rehlds', repo: 'rehlds' }, { author: 'rehlds', repo: 'rehlds' },
{ author: 's1lentq', repo: 'ReGameDLL_CS' }, { author: 's1lentq', repo: 'ReGameDLL_CS' },
{ author: 's1lentq', repo: 'reapi' }, { author: 's1lentq', repo: 'reapi' },
{ author: 's1lentq', repo: 'resemiclip' }, // { author: 's1lentq', repo: 'resemiclip' },
{ author: 's1lentq', repo: 'reunion' }, // { author: 's1lentq', repo: 'reunion' },
{ author: 's1lentq', repo: 'rechecker' }, // { author: 's1lentq', repo: 'rechecker' },
{ author: 's1lentq', repo: 'revoice' }, // { author: 's1lentq', repo: 'revoice' },
{ author: 's1lentq', repo: 'refreelook' }, // { author: 's1lentq', repo: 'refreelook' },
{ author: 's1lentq', repo: 'localizebugfix' }, // { author: 's1lentq', repo: 'localizebugfix' },
{ author: 'WPMGPRoSToTeMa', repo: 'SafeNameAndChat' }, // { author: 'WPMGPRoSToTeMa', repo: 'SafeNameAndChat' },
{ author: 'rehlds', repo: 'relocalizebugfix' }, // { author: 'rehlds', repo: 'relocalizebugfix' },
{ author: 's1lentq', repo: 'hitboxtracker' } // { author: 's1lentq', repo: 'hitboxtracker' }
]; ];
async function fetchLatestRelease(author: string, repo: string): Promise<{ version: string; date: string }> { async function fetchLatestRelease(author: string, repo: string): Promise<{ version: string; date: string }> {