Updated the GitHub Actions workflow to fix CentOS 7 EOL repository issues and improve container initialization steps.