diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67b9b5ed8..39e25d5f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -164,6 +164,19 @@ jobs: container: image: fedora:${{matrix.fedora_version}} steps: + - name: Fix /etc/dnf/dnf.conf + if: matrix.fedora_version == '39' + run: | + dnf_conf_main=$(grep '^\[main\]$' /etc/dnf/dnf.conf 2>/dev/null || true) + if [ "${dnf_conf_main}" = "" ]; then + echo "[main]" > /etc/dnf/dnf.conf + echo "gpgcheck=True" >> /etc/dnf/dnf.conf + echo "installonly_limit=3" >> /etc/dnf/dnf.conf + echo "clean_requirements_on_remove=True" >> /etc/dnf/dnf.conf + echo "best=False" >> /etc/dnf/dnf.conf + echo "skip_if_unavailable=True" >> /etc/dnf/dnf.conf + echo "tsflags=nodocs" >> /etc/dnf/dnf.conf + fi - name: Update repositories run: dnf update -y - name: Upgrade packages