Skip to content

Commit

Permalink
Update checknb.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaniaguam authored Oct 19, 2024
1 parent 3b3c985 commit 792f38f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checknb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ jobs:
run: |
for notebook in $(find notebooks -name "*.ipynb"); do
echo "Converting $notebook to Julia script"
jupyter nbconvert --to script "$notebook" --output-dir=. --output "$notebook.jl"
jupyter nbconvert --to script "$notebook" --output-dir=.
done
# Update HOME variable in nb => .jl scripts
# HOME = "../.." => "."
- name: Update Paths in Converted Julia Scripts
run: |
for script in $(find converted_notebooks -maxdepth 1 -name "*.jl"); do
for script in $(find . -maxdepth 1 -name "*.jl"); do
echo "Updating paths in $script"
sed -i 's|\.\./\.\.|.|g' "$script"
done
Expand Down

0 comments on commit 792f38f

Please sign in to comment.