fix: link yaml deps in pac plan task

This commit is contained in:
UniDesk Codex
2026-07-06 14:56:11 +08:00
parent d636af3003
commit 9dd155605a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -2063,6 +2063,11 @@ set -eu
echo '{"event":"ci-base-image","phase":"plan-artifacts","image":"${ciToolsRunnerImage}","policy":"no-runtime-apk"}'
for tool in node git; do command -v "$tool" >/dev/null 2>&1 || { echo '{"event":"ci-base-image","phase":"plan-artifacts","ok":false,"reason":"missing-tool","tool":"'"$tool"'"}'; exit 31; }; done
cd /workspace/source/repo
ci_node_deps="\${HWLAB_CI_NODE_DEPS:-/opt/hwlab-ci-node-deps/node_modules}"
if [ -d "$ci_node_deps/yaml" ] && [ ! -e node_modules/yaml ]; then
mkdir -p node_modules
ln -s "$ci_node_deps/yaml" node_modules/yaml
fi
test "$(git rev-parse HEAD)" = "$(params.revision)"
HWLAB_CATALOG_PATH="$(params.catalog-path)" \
HWLAB_GIT_URL="$(params.git-url)" \