From 0308a9a907a65197e9db7f9c6add5d0958fcbf44 Mon Sep 17 00:00:00 2001 From: fly6516 Date: Tue, 17 Dec 2024 19:35:13 +0800 Subject: [PATCH] fix Download URL to NJU Mirror v6 --- .gitea/workflows/ci.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index fd3d991..c805434 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -40,20 +40,24 @@ jobs: # # 导入公钥 871920D1991BC93C # apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C + - name: Disable APT signature verification + run: | + echo "Acquire::https::mirror.nju.edu.cn::Verify-Peer false;" | sudo tee /etc/apt/apt.conf.d/99disable-verify + echo "Acquire::https::mirror.nju.edu.cn::Verify-Host false;" | sudo tee -a /etc/apt/apt.conf.d/99disable-verify - name: Apt Update run: | - apt update --allow-unauthenticated + apt update - name: Install Node.js run: | # 更新 apt 包管理器并安装必要的工具 - apt-get install -y curl gnupg2 lsb-release ca-certificates --allow-unauthenticated + apt-get install -y curl gnupg2 lsb-release ca-certificates # 安装 Node.js 20.x #curl -fsSL https://deb.nodesource.com/setup_20.x | bash - #apt-get install -y nodejs - apt install nodejs npm --allow-unauthenticated + apt install nodejs npm # 验证安装是否成功 node -v