Skip to content

Commit

Permalink
Update README with best run results
Browse files Browse the repository at this point in the history
  • Loading branch information
mijanr committed Mar 16, 2024
1 parent ab5a1b0 commit 53960b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ jobs:
uses: actions/checkout@v2

- name: Replace results in README
# run: |
# results=$(cat results/best_runs.md)
# sed -i '/<!--START-->/, /<!--END-->/c\<!--START-->'"$results"'<!--END-->' README.md
run: |
results=$(cat results/best_runs.md)
sed -i '/<!--START-->/, /<!--END-->/c\<!--START-->'"$results"'<!--END-->' README.md
awk -v r="$results" '/<!--START-->/ {print; print r; f=1} /<!--END-->/ {f=0} !f' README.md > temp && mv temp README.md
- name: Commit and push if it changed
run: |
Expand Down

0 comments on commit 53960b7

Please sign in to comment.