Skip to content

Commit

Permalink
Update workflow to read best_runs.md and append its content to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mijanr committed Mar 16, 2024
1 parent ed37347 commit 603e403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
id: read_best_runs
run: |
# Read the content of best_runs.md file
content=$(cat results/best_runs.md)
echo "$content"
best_run_content=$(cat results/best_runs.md)
echo "$best_run_content"
- name: Update README.md
run: |
# Read the content of README.md
readme_content=$(cat README.md)
#add the best runs content to the README.md at the end of the file
echo "$readme_content" >> README.md
echo "$best_run_content" >> README.md
# Check if there are changes in README.md
if ! git diff --quiet README.md; then
Expand Down

0 comments on commit 603e403

Please sign in to comment.