File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
.github/actions/import-db Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 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 "====="
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 : |
You can’t perform that action at this time.
0 commit comments