chore: fix docs freshness check action (#10592)

This commit is contained in:
Shahed Nasser
2024-12-13 09:40:59 +02:00
committed by GitHub
parent 54118941ef
commit 03803283d6
2 changed files with 10 additions and 11 deletions

View File

@@ -36,6 +36,10 @@ jobs:
run: yarn install run: yarn install
working-directory: www/utils working-directory: www/utils
- name: Build Workspace packages
run: yarn build
working-directory: www/utils
- name: Perform Freshness Check - name: Perform Freshness Check
run: yarn check:freshness run: yarn check:freshness
working-directory: www/utils/packages/scripts working-directory: www/utils/packages/scripts

View File

@@ -17,16 +17,6 @@ const linearClient = new LinearClient({
const __filename = fileURLToPath(import.meta.url) const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename) const __dirname = path.dirname(__filename)
const repoPath = path.join(
__dirname,
"..",
"..",
"..",
"..",
"apps",
"book",
"app"
)
let freshnessCheckLabelId = "" let freshnessCheckLabelId = ""
let documentationTeamId = "" let documentationTeamId = ""
@@ -156,7 +146,12 @@ async function main() {
freshnessCheckLabelId = freshnessCheckLabel.nodes[0].id 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) { function getMonthDifference(startDate: Date, endDate: Date) {