Skip to content

Commit

Permalink
Update update_readme.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbaumler authored Jan 31, 2024
1 parent e06b753 commit 5df0471
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/update_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ jobs:
- name: Extract Markdown links and update README
run: |
find docs -type f -name "*.md" -exec awk -v RS= '{gsub(/\n/, " "); print "[" FILENAME "](" FILENAME ")"}' {} \; > links.txt
echo "## Documentation" > temp_readme.md
cat links.txt >> temp_readme.md
awk '/## Documentation/{p=1;print;system("cat links.txt")}!p' README.md > temp_readme.md
awk 'BEGIN{p=1} /^## Notes/{print "## Notes"; system("cat links.txt"); p=0} p' README.md > temp_readme.md
mv temp_readme.md README.md
- name: Commit and push changes
Expand Down

0 comments on commit 5df0471

Please sign in to comment.