From cc27dd6c10a31bcad4e2bd2b5a9b8244325686a7 Mon Sep 17 00:00:00 2001 From: Zanger67 Date: Fri, 26 Jul 2024 18:40:14 -0700 Subject: [PATCH] ensuring that the most recent data submodule is used --- action.yml | 6 ++++++ main.ipynb | 2 +- main.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index e197c2e..9974c13 100644 --- a/action.yml +++ b/action.yml @@ -33,6 +33,12 @@ runs: shell: bash run: | git clone --recurse-submodules https://github.com/Zanger67/Leetcode-Progress-Tracker.git '.readme_updater' + + cd .readme_updater + echo "Initializing and updating submodules in case checkout resulted in uninitializations..." + git submodule update --init --recursive + git submodule update --recursive --remote + cd ../ # if [ -d .readme_updater/ ]; then # echo "Submodule exists." diff --git a/main.ipynb b/main.ipynb index 493d85e..904cd2c 100644 --- a/main.ipynb +++ b/main.ipynb @@ -1766,7 +1766,7 @@ " with open(readmePath, 'w') as file :\n", " username = getenv('LEETCODE_USERNAME')\n", " file.write(f'# **[LeetCode Records](https://leetcode.com/u/{username}/)** ({qSolvedHeader})\\n\\n')\n", - " file.write(f'')\n", + " file.write(f'\\n\\n')\n", " file.write(f'> My LeetCode Profile: [{username}](https://leetcode.com/u/{username}/)\\n')\n", " \n", " # if difficultyBasedMarkdowns :\n", diff --git a/main.py b/main.py index 5eb736a..7504765 100644 --- a/main.py +++ b/main.py @@ -1511,7 +1511,7 @@ def exportPrimaryReadme(dfQuestions: DataFrame, with open(readmePath, 'w') as file : username = getenv('LEETCODE_USERNAME') file.write(f'# **[LeetCode Records](https://leetcode.com/u/{username}/)** ({qSolvedHeader})\n\n') - file.write(f'') + file.write(f'\n\n') file.write(f'> My LeetCode Profile: [{username}](https://leetcode.com/u/{username}/)\n') # if difficultyBasedMarkdowns :