This commit is contained in:
@@ -147,6 +147,20 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! find /cache/pbo/addons -maxdepth 1 -name '*.pbo' -print -quit 2>/dev/null | grep -q .; then
|
||||||
|
echo "PBO cache is empty; bootstrapping all buildable addons."
|
||||||
|
mapfile -t changed_addons < <(
|
||||||
|
git ls-tree -d --name-only "$GIT_SHA" |
|
||||||
|
awk '/^braf_/ {print}' |
|
||||||
|
while read -r addon; do
|
||||||
|
if git cat-file -e "$GIT_SHA:$addon/config.cpp" 2>/dev/null; then
|
||||||
|
printf '%s\n' "$addon"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
)
|
||||||
|
metadata_changed=true
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${#changed_addons[@]}" -eq 0 && "$metadata_changed" != "true" ]]; then
|
if [[ "${#changed_addons[@]}" -eq 0 && "$metadata_changed" != "true" ]]; then
|
||||||
echo "No addon or workshop metadata changes detected; skipping DEV Workshop deploy."
|
echo "No addon or workshop metadata changes detected; skipping DEV Workshop deploy."
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user