Skip to content

Commit 3d6037f

Browse files
committed
removed unwanted changes
1 parent 5529118 commit 3d6037f

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/actions/import-db/action.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ runs:
6868
pip install -r requirements.txt || true
6969
echo "====="
7070
cd ./src
71-
# cleanup resume - only if directory exists
72-
if [ -d "__temp/resume" ]; then
73-
rm __temp/resume/*.json 2>/dev/null || true
74-
fi
71+
# cleanup resume
72+
rm __temp/resume/*.json || true
7573
# arguments of the script
7674
# required
7775
echo "====="
@@ -98,16 +96,7 @@ runs:
9896
if [ -n "${{ inputs.ASSETSTORE }}" ]; then
9997
args+=(--assetstore=${{ inputs.ASSETSTORE }})
10098
fi
101-
# Clean up RAM before import to maximize available memory
102-
echo "Cleaning up system cache before import..."
103-
sudo apt clean || true
104-
sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' || true # Clear page cache, dentries and inodes
105-
docker system prune -f || true # Clean unused Docker objects
106-
sync # Flush filesystem buffers
107-
echo "Memory after cleanup:"
108-
free -h || true
109-
export PYTHONUNBUFFERED=1
110-
python3 repo_import.py "${args[@]}" 2>&1 | tee -a "$log_file_timestamp"
99+
python3 repo_import.py "${args[@]}"
111100
- name: cleanup
112101
shell: bash
113102
run: |

0 commit comments

Comments
 (0)