Skip to content

Commit

Permalink
Update content between markers in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mijanr committed Mar 16, 2024
1 parent f3ce7ad commit 5e43c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/<!--START_SECTION:best_runs-->*/<!--START_SECTION:best_runs-->\\${new_content}\\<!--END_SECTION:best_runs-->}"
# Commit changes to README.md
git config user.name "Md Mijanur Rahman"
Expand Down

0 comments on commit 5e43c15

Please sign in to comment.