Skip to content

Commit

Permalink
Added QOL check and creation of my-submissions DIR if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanger67 committed Jul 20, 2024
1 parent fb2b759 commit b55214d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update_questiondata.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# No longer necessary since task has been relegated to submodule to prevent abundant
# commits to this repo

# name: '[Updating LeetCode question data]'

# on:
Expand Down
22 changes: 22 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,28 @@ runs:
cd ../
- name: Ensure my-submissions directory exists
shell: bash
run: |
if [ -d .my-submissions/ ]; then
echo "my-submissions directory found"
else
echo "my-submissions directory not found. Creating..."
mkdir my-submissions
fi
cd .readme_updater
# Present for testing branch -- unused
git fetch origin testing2
git checkout testing2
# # Make sure current branch is the main live branch
# git fetch origin main
# git checkout main
cd ../
- name: Setup python 3.10
uses: actions/setup-python@v4
Expand Down

0 comments on commit b55214d

Please sign in to comment.