From 53a5603f64e4ddc7b19d43098c61acc503c1154b Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 11 Aug 2023 17:03:39 +0200 Subject: [PATCH] CI: Fix dnf --- .github/workflows/build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90c32ae68..df58f296c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -166,12 +166,17 @@ jobs: image: fedora:${{matrix.fedora_version}} steps: - name: Update repositories - run: dnf update -y + run: dnf -y update + - name: Fix dnf + run: | + if [ -f "/usr/bin/dnf5" ] && ! [ -f "/usr/bin/dnf" ]; then + ln -s /usr/bin/dnf5 /usr/bin/dnf + fi - name: Upgrade packages - run: dnf upgrade -y + run: dnf -y upgrade - name: Install dependencies run: > - dnf install -y + dnf -y install @development-tools redhat-lsb-core which