Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinvoicu committed Mar 13, 2024
1 parent e44bd1d commit dd1fd93
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@ jobs:

- name: Install package dependencies 📄
run: |
args <- commandArgs(trailingOnly = TRUE)
path <- args[1]
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)
}
shell: Rscript {0}
working-directory: ${{ github.event.repository.name }}
with:
PATH: "dependencies.yml"

0 comments on commit dd1fd93

Please sign in to comment.