Skip to content

Commit

Permalink
Update best_runs content in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mijanr committed Mar 16, 2024
1 parent 75f7acf commit 484d134
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ jobs:
readme_content=$(cat README.md)
echo "Readme Content: $readme_content"
# Replace content between <!--START_SECTION:best_runs--> and <!--END_SECTION:best_runs-->
sed -i '/<!--START_SECTION:best_runs-->/, /<!--END_SECTION:best_runs-->/c\'"<!--START_SECTION:best_runs-->\n$content\n<!--END_SECTION:best_runs-->" README.md
# Replace content between <!--START--> and <!--END--> with best_runs.md content
sed -i -e "/<!--START-->/, /<!--END-->/c\<!--START-->\n$readme_content\n<!--END-->" README.md
# Check if there are changes in README.md
if ! git diff --quiet README.md; then
Expand Down

0 comments on commit 484d134

Please sign in to comment.