From 33c4c721da9c7e4ce1210996a641ccf1f49753d3 Mon Sep 17 00:00:00 2001 From: Howard Gil Date: Thu, 19 Sep 2024 01:41:25 -0700 Subject: [PATCH] Removing extra newline which was causing loop (#416) * adding pip install * refactoring push to main * extra newline causing diff --- .github/workflows/add-notebook-examples-to-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-notebook-examples-to-docs.yml b/.github/workflows/add-notebook-examples-to-docs.yml index b75318fa..176f2d6c 100644 --- a/.github/workflows/add-notebook-examples-to-docs.yml +++ b/.github/workflows/add-notebook-examples-to-docs.yml @@ -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