From 53960b702a3f4247888e321a8bdd9ebc9b81b5f3 Mon Sep 17 00:00:00 2001 From: Md Mijanur Rahman Date: Sat, 16 Mar 2024 22:59:27 +0100 Subject: [PATCH] Update README with best run results --- .github/workflows/update_readme.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_readme.yml b/.github/workflows/update_readme.yml index 6f716393..e5e4d876 100644 --- a/.github/workflows/update_readme.yml +++ b/.github/workflows/update_readme.yml @@ -14,9 +14,12 @@ jobs: uses: actions/checkout@v2 - name: Replace results in README + # run: | + # results=$(cat results/best_runs.md) + # sed -i '//, //c\'"$results"'' README.md run: | results=$(cat results/best_runs.md) - sed -i '//, //c\'"$results"'' README.md + awk -v r="$results" '// {print; print r; f=1} // {f=0} !f' README.md > temp && mv temp README.md - name: Commit and push if it changed run: |