From ae6acfd5f65b429905ad50aa00322078cb235665 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Fri, 25 Oct 2024 12:41:08 +0300 Subject: [PATCH] Update CI: repos updater use only top 3 --- .github/workflows/update-repositories.yml | 5 ++++- scripts/fetchRepositories.ts | 18 +++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/update-repositories.yml b/.github/workflows/update-repositories.yml index dce71c0..18d6084 100644 --- a/.github/workflows/update-repositories.yml +++ b/.github/workflows/update-repositories.yml @@ -1,9 +1,12 @@ name: Update Repositories file on: + workflow_dispatch: schedule: - cron: "0 0 1 * *" - workflow_dispatch: + push: + paths: + - scripts/fetchRepositories.ts jobs: update-repositories: diff --git a/scripts/fetchRepositories.ts b/scripts/fetchRepositories.ts index 937350a..ac05f46 100644 --- a/scripts/fetchRepositories.ts +++ b/scripts/fetchRepositories.ts @@ -17,15 +17,15 @@ const repos: { author: string; repo: string }[] = [ { author: 'rehlds', repo: 'rehlds' }, { author: 's1lentq', repo: 'ReGameDLL_CS' }, { author: 's1lentq', repo: 'reapi' }, - { author: 's1lentq', repo: 'resemiclip' }, - { author: 's1lentq', repo: 'reunion' }, - { author: 's1lentq', repo: 'rechecker' }, - { author: 's1lentq', repo: 'revoice' }, - { author: 's1lentq', repo: 'refreelook' }, - { author: 's1lentq', repo: 'localizebugfix' }, - { author: 'WPMGPRoSToTeMa', repo: 'SafeNameAndChat' }, - { author: 'rehlds', repo: 'relocalizebugfix' }, - { author: 's1lentq', repo: 'hitboxtracker' } + // { author: 's1lentq', repo: 'resemiclip' }, + // { author: 's1lentq', repo: 'reunion' }, + // { author: 's1lentq', repo: 'rechecker' }, + // { author: 's1lentq', repo: 'revoice' }, + // { author: 's1lentq', repo: 'refreelook' }, + // { author: 's1lentq', repo: 'localizebugfix' }, + // { author: 'WPMGPRoSToTeMa', repo: 'SafeNameAndChat' }, + // { author: 'rehlds', repo: 'relocalizebugfix' }, + // { author: 's1lentq', repo: 'hitboxtracker' } ]; async function fetchLatestRelease(author: string, repo: string): Promise<{ version: string; date: string }> {