From 03803283d68b72c341c3fccf2827eaf04ebc063a Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 13 Dec 2024 09:40:59 +0200 Subject: [PATCH] chore: fix docs freshness check action (#10592) --- .github/workflows/docs-freshness-check.yml | 4 ++++ www/utils/packages/scripts/freshness-check.ts | 17 ++++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docs-freshness-check.yml b/.github/workflows/docs-freshness-check.yml index e5c6ff5fef..275e732779 100644 --- a/.github/workflows/docs-freshness-check.yml +++ b/.github/workflows/docs-freshness-check.yml @@ -36,6 +36,10 @@ jobs: run: yarn install working-directory: www/utils + - name: Build Workspace packages + run: yarn build + working-directory: www/utils + - name: Perform Freshness Check run: yarn check:freshness working-directory: www/utils/packages/scripts diff --git a/www/utils/packages/scripts/freshness-check.ts b/www/utils/packages/scripts/freshness-check.ts index 8fffbf0455..9f724f30fe 100644 --- a/www/utils/packages/scripts/freshness-check.ts +++ b/www/utils/packages/scripts/freshness-check.ts @@ -17,16 +17,6 @@ const linearClient = new LinearClient({ const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) -const repoPath = path.join( - __dirname, - "..", - "..", - "..", - "..", - "apps", - "book", - "app" -) let freshnessCheckLabelId = "" let documentationTeamId = "" @@ -156,7 +146,12 @@ async function main() { freshnessCheckLabelId = freshnessCheckLabel.nodes[0].id - await scanDirectory(repoPath) + await scanDirectory( + path.join(__dirname, "..", "..", "..", "..", "apps", "book", "app") + ) + await scanDirectory( + path.join(__dirname, "..", "..", "..", "..", "apps", "resources", "app") + ) } function getMonthDifference(startDate: Date, endDate: Date) {