Skip to content

Commit eca9e0f

Browse files
Cidreeclaude
andcommitted
fix: Detect package manager for Quarto deps in r-hub containers.
The atlas platform uses a Fedora-based container without apt-get; fall back to dnf/yum so the sudo and jq install step succeeds there. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c74c520 commit eca9e0f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/rhub.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,17 @@ jobs:
6161
token: ${{ secrets.RHUB_TOKEN }}
6262
job-config: ${{ matrix.config.job-config }}
6363
- name: Install Quarto dependencies (sudo, jq)
64-
run: apt-get update -q && apt-get install -y -q sudo jq
64+
run: |
65+
if command -v apt-get >/dev/null; then
66+
apt-get update -q && apt-get install -y -q sudo jq
67+
elif command -v dnf >/dev/null; then
68+
dnf install -y sudo jq
69+
elif command -v yum >/dev/null; then
70+
yum install -y sudo jq
71+
else
72+
echo "No supported package manager found (apt-get/dnf/yum)" >&2
73+
exit 1
74+
fi
6575
- uses: quarto-dev/quarto-actions/setup@v2
6676
- uses: r-hub/actions/run-check@v1
6777
with:

0 commit comments

Comments
 (0)