Skip to content

Commit

Permalink
Removing extra newline which was causing loop (#416)
Browse files Browse the repository at this point in the history
* adding pip install

* refactoring push to main

* extra newline causing diff
  • Loading branch information
HowieG authored Sep 19, 2024
1 parent cccda9c commit 33c4c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/add-notebook-examples-to-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
echo "Removing existing content after {/* SOURCE_FILE: ... */}"
sed -i '\#{/\* SOURCE_FILE:#,$d' "$file"
echo "Appending markdown to $file"
echo -e "\n{/* SOURCE_FILE: $source_file */}\n" >> "$file"
echo -e "{/* SOURCE_FILE: $source_file */}\n" >> "$file"
cat "$markdown_file" >> "$file" || { echo "Error: Failed to append markdown to $file" >&2; continue; }
rm "$markdown_file" || { echo "Error: Failed to remove $markdown_file" >&2; continue; }
else
Expand Down

0 comments on commit 33c4c72

Please sign in to comment.