From 4ecc8317fb952205a7b528290a3701c2a31256f5 Mon Sep 17 00:00:00 2001 From: kaka Date: Fri, 11 Oct 2024 15:34:23 +0800 Subject: [PATCH] update --- .github/workflows/notion2md.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/notion2md.js b/.github/workflows/notion2md.js index 57b4fa1..075335f 100644 --- a/.github/workflows/notion2md.js +++ b/.github/workflows/notion2md.js @@ -61,6 +61,11 @@ async function main() { ], } }); + + if(!response.results.length){ + console.log('no data') + return + } let mid = (`${startDay}_${today}`).replace(/-/g,'') let mdHead = `---\ndate: ${today.replace(/-/g,'/')}\ntoc: true\n---\n\n`