From 6af959142663713d65bc4d77b1e5c76a374fb976 Mon Sep 17 00:00:00 2001 From: wenlinli <1574249665@qq.com> Date: Mon, 29 Jul 2024 19:14:30 +0800 Subject: [PATCH] update centos yum repo --- .github/workflows/workflow.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 1fd718b9..8ac222c3 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -52,7 +52,10 @@ jobs: fetch-depth: 5 - name: install CentOS dependencies run: | - yum clean all + cd /etc/yum.repos.d/ + sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + yum update -y yum install -y which git openssl-devel openssl wget - name: Set up JDK 1.8 uses: actions/setup-java@v3