From ed79d2e2e3f6891c4a45cf4dec0df4649c611c32 Mon Sep 17 00:00:00 2001 From: Chris Maltby Date: Wed, 15 Jan 2025 15:17:25 +0000 Subject: [PATCH] Fix CI/CD builds --- .github/workflows/main.yml | 2 ++ src/scripts/fetchPatrons.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb03ad178..889a41506 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -136,6 +136,7 @@ jobs: sudo dpkg --add-architecture i386 sudo apt-get -y update sudo apt-get -y install wine wine64 mono-devel + export PATH=$PATH:/usr/lib/wine yarn make:win32 mkdir -p ./out/keep mv ./out/make/zip/win32/ia32/*.zip ./out/keep/gb-studio-${CIRCLE_BRANCH}-windows_x86.zip @@ -147,6 +148,7 @@ jobs: sudo dpkg --add-architecture i386 sudo apt-get -y update sudo apt-get -y install wine wine64 mono-devel + export PATH=$PATH:/usr/lib/wine yarn make:win mkdir -p ./out/keep mv ./out/make/zip/win32/x64/*.zip ./out/keep/gb-studio-${CIRCLE_BRANCH}-windows_x86_64.zip diff --git a/src/scripts/fetchPatrons.ts b/src/scripts/fetchPatrons.ts index 7a5028345..9b6a83ba1 100644 --- a/src/scripts/fetchPatrons.ts +++ b/src/scripts/fetchPatrons.ts @@ -128,6 +128,8 @@ const fetchPatrons = async (): Promise => { }); if (res.links?.next) { + // Wait 3 seconds between API calls to prevent API limits being hit in CI/CD + await new Promise((resolve) => setTimeout(resolve, 3000)); await fetchPage(res.links.next); } };