diff --git a/.github/workflows/update_readme.yml b/.github/workflows/update_readme.yml index 605eaae4..22e768ac 100644 --- a/.github/workflows/update_readme.yml +++ b/.github/workflows/update_readme.yml @@ -21,8 +21,8 @@ jobs: new_content="$(cat extracted_content.md)" if [[ -n "${new_content}" ]]; then - # Replace existing section with new content - sed -i '//,//c\\n'"${new_content}"'\n' README.md + # Replace content between markers with new content + updated_content="${existing_content/*/\\${new_content}\\}" # Commit changes to README.md git config user.name "Md Mijanur Rahman"