From 14dc975de97be49e28c2d1d4bf95f95355296ced Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 19 Jul 2025 03:36:38 +0900 Subject: [PATCH] ci: Fix debian 10 setup --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abbefcd5..fa9d8def 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -177,9 +177,10 @@ jobs: - name: Install requirements (old debian) run: | # In Debian, the old repositories is removed from the main mirrors some time after EoL. + codename=$(grep -E '^VERSION_CODENAME=' /etc/os-release | cut -d= -f2) sed -i /etc/apt/sources.list -e 's/deb.debian.org/archive.debian.org/g' \ -e 's|security.debian.org|archive.debian.org/|g' \ - -e '/stretch-updates/d' + -e "/${codename}-updates/d" if: startsWith(matrix.container, 'debian:9') || startsWith(matrix.container, 'debian:10') - name: Install requirements (centos) run: |