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() { ...@@ -57,13 +57,12 @@ process_repo() {
return return
fi fi
# check oversize rm -rf "workspace/$repo_identifer/sound" || true
size=$(du -sm "workspace/$repo_identifer" | cut -f1)
echo "Checking size of $repo_identifer: $size MB" if [ -d "workspace/$repo_identifer/expansions" ]; then
if [[ $size > $SIZE_LIMIT_MB ]]; then echo "Moving expansions out in $repo_identifer"
echo "Skipping $repo_identifer due to oversize: $size MB > $SIZE_LIMIT_MB MB" mv workspace/$repo_identifer/expansions/* workspace/$repo_identifer/
echo "[ERROR] $repo_url Oversize: $size MB > $SIZE_LIMIT_MB MB" | tee dist/warnings.txt rm -rf "workspace/$repo_identifer/expansions" || true
return
fi fi
current_path="$(pwd)" current_path="$(pwd)"
...@@ -83,6 +82,8 @@ process_repo() { ...@@ -83,6 +82,8 @@ process_repo() {
return return
fi fi
rm -rf .git || true
echo "Checking for blacklist files in $repo_identifer" echo "Checking for blacklist files in $repo_identifer"
while read -r file; do while read -r file; do
...@@ -99,6 +100,15 @@ process_repo() { ...@@ -99,6 +100,15 @@ process_repo() {
cd "$current_path" 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" echo "Checking for OCG codes in $repo_identifer"
while read -r code; do 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