Commit ac468e28 authored by xiaoye's avatar xiaoye

Merge branch 'master' of git.moenext.com:alstroemeria-silentlove/ygopro-custom-free

parents 87e586e0 01f72e62
Pipeline #33723 failed with stages
in 1 minute and 40 seconds
# contact: QQ 1472676207
https://code.moenext.com/nemoma/NemoCards.git
......@@ -57,13 +57,12 @@ process_repo() {
return
fi
# check oversize
size=$(du -sm "workspace/$repo_identifer" | cut -f1)
echo "Checking size of $repo_identifer: $size MB"
if [[ $size > $SIZE_LIMIT_MB ]]; then
echo "Skipping $repo_identifer due to oversize: $size MB > $SIZE_LIMIT_MB MB"
echo "[ERROR] $repo_url Oversize: $size MB > $SIZE_LIMIT_MB MB" | tee dist/warnings.txt
return
rm -rf "workspace/$repo_identifer/sound" || true
if [ -d "workspace/$repo_identifer/expansions" ]; then
echo "Moving expansions out in $repo_identifer"
mv workspace/$repo_identifer/expansions/* workspace/$repo_identifer/
rm -rf "workspace/$repo_identifer/expansions" || true
fi
current_path="$(pwd)"
......@@ -83,6 +82,8 @@ process_repo() {
return
fi
rm -rf .git || true
echo "Checking for blacklist files in $repo_identifer"
while read -r file; do
......@@ -99,6 +100,15 @@ process_repo() {
cd "$current_path"
# check oversize
size=$(du -sm "workspace/$repo_identifer" | cut -f1)
echo "Checking size of $repo_identifer: $size MB"
if [[ $size -gt $SIZE_LIMIT_MB ]]; then
echo "Skipping $repo_identifer due to oversize: $size MB > $SIZE_LIMIT_MB MB"
echo "[ERROR] $repo_url Oversize: $size MB > $SIZE_LIMIT_MB MB" | tee dist/warnings.txt
return
fi
echo "Checking for OCG codes in $repo_identifer"
while read -r code; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment