Commit f8b69380 authored by nanahira's avatar nanahira

skip in schedule run only

parent c8bc19a8
...@@ -19,6 +19,8 @@ check: ...@@ -19,6 +19,8 @@ check:
YGOPRO_SERVER_PATH: /ygopro-server/ygopro YGOPRO_SERVER_PATH: /ygopro-server/ygopro
SIZE_LIMIT_MB: 100 SIZE_LIMIT_MB: 100
KEEP_PERIOD_DAYS: 30 KEEP_PERIOD_DAYS: 30
IMG_WIDTH: 400
IMG_HEIGHT: 580
artifacts: artifacts:
paths: paths:
- dist - dist
......
...@@ -94,6 +94,7 @@ process_repo() { ...@@ -94,6 +94,7 @@ process_repo() {
echo "## $repo_identifer" >> dist/strings.conf echo "## $repo_identifer" >> dist/strings.conf
cat workspace/$repo_identifer/strings.conf >> dist/strings.conf cat workspace/$repo_identifer/strings.conf >> dist/strings.conf
fi fi
cp -rf workspace/$repo_identifer/pics dist/ cp -rf workspace/$repo_identifer/pics dist/
cp -rf workspace/$repo_identifer/script dist/ cp -rf workspace/$repo_identifer/script dist/
echo "$last_commit_hash" > dist/hashes/$repo_identifer.txt echo "$last_commit_hash" > dist/hashes/$repo_identifer.txt
...@@ -113,7 +114,7 @@ for file in repos/*.txt; do ...@@ -113,7 +114,7 @@ for file in repos/*.txt; do
done < "$file" done < "$file"
done done
if [[ $something_changed == 0 ]]; then if [[ $something_changed == 0 ]] && [[ -n $SCHEDULED ]]; then
echo "No changes detected, skipping update" echo "No changes detected, skipping update"
exit 1 exit 1
fi fi
......
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