diff --git a/.github/workflows/fedora-38-R4.4.yaml b/.github/workflows/fedora-38-R4.4.yaml index 0daa0dc6..7f9e4bd2 100644 --- a/.github/workflows/fedora-38-R4.4.yaml +++ b/.github/workflows/fedora-38-R4.4.yaml @@ -10,6 +10,15 @@ jobs: runs-on: ubuntu-latest container: ghcr.io/r-hub/containers/gcc13:latest steps: + - name: Check Distro and R version + run: | + readRenviron("/etc/os-release") + if (Sys.getenv("ID") != "fedora") stop("Not Fedora") + if (Sys.getenv("VERSION_ID") != "38") stop("Not Fedora 38") + if (getRversion() < "4.4.0" || getRversion() >= "4.5.0") { + stop("Not R 4.4.x") + } + shell: Rscript {0} - uses: actions/checkout@v3 - uses: r-hub/repos/actions/update-repo@main with: