Fix Forgejo workflow: add coreutils for numfmt command
Some checks failed
Compile apt-layer / compile (push) Failing after 3s

This commit is contained in:
robojerk 2025-07-15 08:39:55 -07:00
parent c85d9af526
commit a138be7f1e

View file

@ -33,17 +33,17 @@ jobs:
if command -v apt-get >/dev/null 2>&1; then
echo "Using apt-get package manager..."
apt-get update
apt-get install -y jq dos2unix bash
apt-get install -y jq dos2unix bash coreutils
elif command -v apk >/dev/null 2>&1; then
echo "Using apk package manager..."
apk update
apk add jq dos2unix bash
apk add jq dos2unix bash coreutils
elif command -v yum >/dev/null 2>&1; then
echo "Using yum package manager..."
yum install -y jq dos2unix bash
yum install -y jq dos2unix bash coreutils
elif command -v dnf >/dev/null 2>&1; then
echo "Using dnf package manager..."
dnf install -y jq dos2unix bash
dnf install -y jq dos2unix bash coreutils
else
echo "No supported package manager found. Checking if tools are already available..."
# Check if tools are already available
@ -58,6 +58,10 @@ jobs:
echo "❌ bash not found and no package manager available"
exit 1
fi
if ! command -v numfmt >/dev/null 2>&1; then
echo "❌ numfmt not found and no package manager available"
exit 1
fi
echo "✅ Required tools are already available"
fi