Skip to content

Commit

Permalink
runtest: add repo and branch name to archived nbs name to id which re…
Browse files Browse the repository at this point in the history
…po they came from and further avoid name clash
  • Loading branch information
tlvu committed May 16, 2024
1 parent 25c0abb commit 0182490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtest
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ SAVE_RESULTING_NOTEBOOK="$(lowercase "$SAVE_RESULTING_NOTEBOOK")"

mkdir -p buildout/
for nb in $NOTEBOOKS; do
filename="$(basename "$nb")"
repo_branch_name="$(extract_repo_name "$nb")"
filename="${repo_branch_name}--$(basename "$nb")"
filename="$(echo "$filename" | sed "s/.ipynb$//")" # remove .ipynb ext
if [ -e "buildout/${filename}.ipynb" ]; then
# prevent name clash
Expand Down

0 comments on commit 0182490

Please sign in to comment.