From 6c2eb95a06516dc44a1d09866a1e58aa01eb6080 Mon Sep 17 00:00:00 2001 From: Md Mijanur Rahman Date: Sat, 16 Mar 2024 22:21:00 +0100 Subject: [PATCH] Update best_runs content in README.md --- .github/workflows/update_readme.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/update_readme.yml b/.github/workflows/update_readme.yml index 85104927..135394e7 100644 --- a/.github/workflows/update_readme.yml +++ b/.github/workflows/update_readme.yml @@ -17,6 +17,7 @@ jobs: run: | # Read the content of best_runs.md file content=$(cat results/best_runs.md) + echo "Content from best_runs.md:" echo "$content" - name: Update README.md @@ -26,7 +27,13 @@ jobs: # Replace content between and new_content="\n$content\n" + echo "New content for README.md:" + echo "$new_content" + + # Perform content replacement using sed updated_readme_content=$(echo "$readme_content" | sed -e '//, //c\'"$new_content") + echo "Updated README.md content:" + echo "$updated_readme_content" # Update README.md echo "$updated_readme_content" > README.md