Skip to content

Commit

Permalink
ci(GitHub): check the version of kernel before running scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
adonis0147 committed Nov 4, 2024
1 parent 703d0bf commit eda0868
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
set -e
uname -a
kernel="\$(uname -a | awk '{print \$3}')"
if [[ ! "\${kernel}" =~ 3.10.0-123.1.2* ]]; then
echo "The version of the kernel is wrong."
exit 1
fi
sudo sed -i -e 's|mirrorlist=|#mirrorlist=|' -e 's|#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=https://vault.centos.org/7.9.2009|' /etc/yum.repos.d/CentOS-Base.repo
Expand Down

0 comments on commit eda0868

Please sign in to comment.