Skip to content

Commit

Permalink
Merge pull request #15 from CausalAIBook/fix-transform-yml
Browse files Browse the repository at this point in the history
Update transform-notebooks.yml
  • Loading branch information
vsyrgkanis authored Aug 3, 2024
2 parents 3469e9e + 67a7233 commit db44907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/transform-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ jobs:
# first we delete all Rmd files and regenerate. This will make sure
# that if a .irnb file is deleted then the corresponding .Rmd file
# will also be removed by this script.
git rm "$dir"/*.Rmd
find "$dir" -maxdepth 1 -type f -name '*.Rmd' -exec git rm {} \;
R -e "
files <- list.files(path = '$dir', pattern = '\\\\.irnb$', full.names = TRUE, recursive = FALSE)
lapply(files, function(input) {
rmarkdown::convert_ipynb(input)
})
"
git add "$dir"/*.Rmd
find "$dir" -maxdepth 1 -type f -name '*.Rmd' -exec git add {} \;
else
echo "Directory $dir does not exist."
fi
Expand Down

0 comments on commit db44907

Please sign in to comment.