diff --git a/dist/index.js b/dist/index.js index 410383b..01f0056 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6192,7 +6192,19 @@ async function updateReadme(data) { const longestStreak = [ `⏳ Longest streak is **${goals.max_daily_streak.count}** days`, ]; - // todoist.push(longestStreak); + todoist.push(longestStreak); + + const currentStreak = [ + `🔥 Current streak is **${goals.current_streak.count}** days`, + ]; + todoist.push(currentStreak); + + /** + * + * + * + * Done with composition of todoist array + */ if (todoist.length == 0) return; @@ -6227,7 +6239,7 @@ async function updateReadme(data) { // } - process.exit(1); + process.exit(0); // GitHub Action git push diff --git a/index.js b/index.js index 05d17d4..75d6cff 100644 --- a/index.js +++ b/index.js @@ -48,6 +48,18 @@ async function updateReadme(data) { ]; // todoist.push(longestStreak); + const currentStreak = [ + `🔥 Current streak is **${goals.current_streak.count}** days`, + ]; + todoist.push(currentStreak); + + /** + * + * + * + * Done with composition of todoist array + */ + if (todoist.length == 0) return; if (todoist.length > 0) { @@ -81,7 +93,7 @@ async function updateReadme(data) { // } - process.exit(1); + process.exit(0); // GitHub Action git push