Skip to content

Commit

Permalink
Fix free_diskspace.
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Oct 27, 2023
1 parent 9193051 commit ca4b380
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions R/condaenv_exists.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
condaenv_exists <- function(...){
requireNamespace("reticulate")
utils::getFromNamespace("condaenv_exists","reticulate")(...)
if(is_gha()){
Sys.getenv("CONDA")!=""
} else {
requireNamespace("reticulate")
utils::getFromNamespace("condaenv_exists","reticulate")(...)
}
}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ runs:

- name: 💾 Free Disk Space
if: inputs.free_diskspace == 'true'
uses: jlumbroso/free-disk-space@v1
uses: jlumbroso/free-disk-space@main

- name: 🐍 Setup Miniconda
if: inputs.miniforge_variant != 'false'
Expand Down

0 comments on commit ca4b380

Please sign in to comment.