Skip to content

Commit 7471059

Browse files
author
Steve Nunez
committed
Fix directory permissions for common-lisp-jupyter
1 parent b5cd3bb commit 7471059

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build-notebooks.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
run: |
3030
# Create necessary directories
3131
mkdir -p _site
32+
mkdir -p common-lisp-jupyter
33+
chmod 777 common-lisp-jupyter
3234
3335
# Execute and convert notebooks one by one using the Common Lisp container
3436
for notebook in *.ipynb; do
@@ -40,7 +42,14 @@ jobs:
4042
-v ${{ github.workspace }}:/workspace \
4143
-w /workspace \
4244
ghcr.io/lisp-stat/cl-jupyter:latest \
43-
jupyter nbconvert --execute --to notebook --output "/workspace/executed_$notebook" "$notebook"
45+
bash -c "
46+
# Ensure the directory exists with proper permissions
47+
mkdir -p /workspace/common-lisp-jupyter
48+
chmod 777 /workspace/common-lisp-jupyter
49+
50+
# Execute the notebook
51+
jupyter nbconvert --execute --to notebook --output \"/workspace/executed_$notebook\" \"$notebook\"
52+
"
4453
4554
# Convert the executed notebook to HTML
4655
docker run --rm \

0 commit comments

Comments
 (0)