Github Actions building R Error in read.dcf(path) cannot open the connection

When trying to run the r-lib/actions/setup-r for R in Github Actions installing the dependencies.

name: R

    branches: [ main, feature/* ]
    branches: [ main ]

    runs-on: macOS-latest

    - uses: actions/checkout@master
    - uses: r-lib/actions/setup-r@v1
    - name: Install dependencies
      run: |
        install.packages(c("remotes", "rcmdcheck", "gmodels"))
        remotes::install_deps(dependencies = TRUE)
      shell: Rscript {0}

When running this I get an error in read.dcf(path) cannot open the connection

The downloaded binary packages are in
Error: Error in read.dcf(path) : cannot open the connection
Calls: <Anonymous> ... load_pkg_description -> read_dcf -> colnames -> -> read.dcf
In addition: Warning message:
In read.dcf(path) :
  cannot open compressed file '/Users/runner/work/folder/R/DESCRIPTION', probable reason 'No such file or directory'
Execution halted
Error: Process completed with exit code 1.

As the error message states isn’t trying to locate a DESCRIPTION file. Add a file called DESCRIPTION in the path it’s provided (most likely your root folder). Examples of a DESCRIPTION file:

Package: mypackage
Title: What The Package Does (one line, title case required)
Version: 0.1
Authors@R: person("First", "Last", email = "",
                  role = c("aut", "cre"))
Description: What the package does (one paragraph)
Depends: R (>= 3.1.0)
License: What license is it under?
LazyData: true