Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix docs freshness check action #10592

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/docs-freshness-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 6 additions & 11 deletions www/utils/packages/scripts/freshness-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""

Expand Down Expand Up @@ -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) {
Expand Down
Loading