From eadd66dc6cbfc5022d8c1b634a3d3f3e44a3209c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Thu, 6 Jun 2024 19:08:29 -0500 Subject: [PATCH] fix: cache 2 --- .github/workflows/cd-discover-ids.yml | 2 +- scripts/discoverIds.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd-discover-ids.yml b/.github/workflows/cd-discover-ids.yml index f619881cf..e63c6b4bf 100644 --- a/.github/workflows/cd-discover-ids.yml +++ b/.github/workflows/cd-discover-ids.yml @@ -23,4 +23,4 @@ jobs: run: bun install - name: Discover IDs - run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} GH_TOKEN=${{ secrets.GH_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun scripts/discoverIds.ts + run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} GH_TOKEN=${{ secrets.GH_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun scripts/discoverIds.ts --production diff --git a/scripts/discoverIds.ts b/scripts/discoverIds.ts index 34653ffef..0337dd356 100644 --- a/scripts/discoverIds.ts +++ b/scripts/discoverIds.ts @@ -27,6 +27,8 @@ const preDiscoveredRaw = await fetch( return undefined; }); +console.log(`Running in ${production ? 'production' : 'development'} mode`); + if (preDiscoveredRaw === undefined) { console.log('No pre-discovered ids found :('); } else {