ci: 在 checkout 前安装 nodejs,修复 runner 缺少 node 导致拉取失败
This commit is contained in:
@@ -31,6 +31,18 @@ jobs:
|
||||
fi
|
||||
docker --version
|
||||
|
||||
- name: Install Node.js and Git
|
||||
run: |
|
||||
if ! command -v node &> /dev/null; then
|
||||
if command -v apk &> /dev/null; then
|
||||
apk add --no-cache nodejs git
|
||||
elif command -v apt-get &> /dev/null; then
|
||||
apt-get update && apt-get install -y nodejs git
|
||||
fi
|
||||
fi
|
||||
node --version
|
||||
git --version
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user