Skip to content

Commit

Permalink
ensuring that the most recent data submodule is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanger67 committed Jul 27, 2024
1 parent 426b2a3 commit cc27dd6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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'<!-- This readme was generated using [WikiLeet](<https://github.com/Zanger67/WikiLeet>) -->')\n",
" file.write(f'<!-- This readme was generated using [WikiLeet](<https://github.com/Zanger67/WikiLeet>) -->\\n\\n')\n",
" file.write(f'> My LeetCode Profile: [{username}](https://leetcode.com/u/{username}/)\\n')\n",
" \n",
" # if difficultyBasedMarkdowns :\n",
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'<!-- This readme was generated using [WikiLeet](<https://github.com/Zanger67/WikiLeet>) -->')
file.write(f'<!-- This readme was generated using [WikiLeet](<https://github.com/Zanger67/WikiLeet>) -->\n\n')
file.write(f'> My LeetCode Profile: [{username}](https://leetcode.com/u/{username}/)\n')

# if difficultyBasedMarkdowns :
Expand Down

0 comments on commit cc27dd6

Please sign in to comment.