Skip to content

Commit

Permalink
Update README content extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
mijanr committed Mar 16, 2024
1 parent d0daf82 commit d61f567
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3 # Update to the latest version

- name: Extract content from best_runs.md
id: extract_best_runs # Add an 'id' for later referencing
run: |
awk '/## Best Runs/{flag=1; next} /##/{flag=0} flag' results/best_runs.md > extracted_content.md
# - name: Extract content from best_runs.md
# id: extract_best_runs # Add an 'id' for later referencing
# run: |
# cat best_runs.md | sed -n '/<!--START_SECTION:best_runs-->/,/<!--END_SECTION:best_runs-->/p' | sed '1d;$d' > extracted_content.md

- name: Update README
run: |
new_content="$(cat extracted_content.md)"
new_content="$(cat results/best_runs.md)"
if [[ -n "${new_content}" ]]; then
# Replace content between markers with new content
Expand Down

0 comments on commit d61f567

Please sign in to comment.