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 8a9ee67 commit 7a6e8f2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/update_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
jobs:
update-readme:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
Expand All @@ -21,12 +23,3 @@ jobs:
find docs -type f -name "*.md" -exec awk -v RS= '{gsub(/\n/, " "); print "[" FILENAME "](" FILENAME ")"}' {} \; > links.txt
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
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
git add README.md links.txt
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push

0 comments on commit 7a6e8f2

Please sign in to comment.