From 7a6e8f22a099db9bca36903ef04ec253d970b652 Mon Sep 17 00:00:00 2001 From: Colton Baumler <63077899+ccbaumler@users.noreply.github.com> Date: Wed, 31 Jan 2024 14:28:42 -0800 Subject: [PATCH] Update update_readme.yaml --- .github/workflows/update_readme.yaml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update_readme.yaml b/.github/workflows/update_readme.yaml index 141d5de..23cbc34 100644 --- a/.github/workflows/update_readme.yaml +++ b/.github/workflows/update_readme.yaml @@ -11,6 +11,8 @@ on: jobs: update-readme: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout repository @@ -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 "ccbaumler@users.noreply.github.com" - git add README.md links.txt - git commit -m "${{ env.CI_COMMIT_MESSAGE }}" - git push