From 1f7f0f9bafbc02ea8f4ab0e03427337d65a084fc Mon Sep 17 00:00:00 2001 From: Benoit Demaegdt Date: Wed, 25 Oct 2023 14:19:31 +0200 Subject: [PATCH] fix github action --- .github/scripts/check_data_health.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/check_data_health.js b/.github/scripts/check_data_health.js index 489ae50d..1824bf43 100644 --- a/.github/scripts/check_data_health.js +++ b/.github/scripts/check_data_health.js @@ -2,13 +2,13 @@ const fs = require('fs'); const path = require('path'); function checkDataHealth() { - checkJsonFilesAreValid(); + checkJsonFilesAreValid('content'); // checkGeoJsonDataHealth(); } -function checkJsonFilesAreValid() { - fs.readdirSync('content').forEach(file => { - const filePath = path.join('content', file); +function checkJsonFilesAreValid(directory) { + fs.readdirSync(directory).forEach(file => { + const filePath = path.join(directory, file); if (fs.statSync(filePath).isDirectory()) { checkJsonFilesAreValid(filePath);