AI Implementation feature(1084): Blog Repository Clone and Pull Workflow (#3)

This commit was merged in pull request #3.
This commit is contained in:
2026-08-04 18:00:55 +00:00
parent 207e2e6bbb
commit 3fe2b90f51
9 changed files with 477 additions and 23 deletions
+12
View File
@@ -2,6 +2,16 @@
set -euo pipefail
export DEBIAN_FRONTEND=noninteractive
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}"
if [ -w /usr/local/bin ] && [ ! -e /usr/local/bin/build.sh ]; then
ln -s "${SCRIPT_DIR}/build.sh" /usr/local/bin/build.sh || true
fi
if [ -w /usr/local/bin ] && [ ! -e /usr/local/bin/setup.sh ]; then
ln -s "${SCRIPT_DIR}/setup.sh" /usr/local/bin/setup.sh || true
fi
apt-get update
apt-get install -y --no-install-recommends \
bash \
@@ -22,6 +32,8 @@ fi
if [ -n "${PIP_BIN}" ]; then
${PIP_BIN} install --no-cache-dir --upgrade pip >/dev/null 2>&1 || true
${PIP_BIN} install --no-cache-dir --break-system-packages -r /repo/requirements.txt || \
${PIP_BIN} install --no-cache-dir -r /repo/requirements.txt
${PIP_BIN} install --no-cache-dir --break-system-packages -r /repo/requirements-dev.txt || \
${PIP_BIN} install --no-cache-dir -r /repo/requirements-dev.txt
fi