diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index ab96c76..0c75a9c 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -34,8 +34,8 @@ jobs: - name: Install package dependencies 📄 run: | - if (file.exists(${PATH})) { - yaml::yaml.load(readLines(${PATH}))$dependencies |> + if (file.exists(./dependencies.yml)) { + yaml::yaml.load(readLines(./dependencies.yml))$dependencies |> sapply(function(x) x$repo) |> pak::pak(dependencies = TRUE, ask = FALSE, upgrade = FALSE) }