From ad6f18b7373e8350d1b9ade7a47c26c5e1c88dce Mon Sep 17 00:00:00 2001 From: Toran Bruce Richards Date: Fri, 21 Apr 2023 12:31:37 +1200 Subject: [PATCH] Update sponsors_readme.yml --- .github/workflows/sponsors_readme.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sponsors_readme.yml b/.github/workflows/sponsors_readme.yml index ab34825e..61ebb1ba 100644 --- a/.github/workflows/sponsors_readme.yml +++ b/.github/workflows/sponsors_readme.yml @@ -17,10 +17,13 @@ jobs: file: 'README.md' minimum: 2500 maximum: 99999 - - - name: Deploy to GitHub Pages 🚀 - uses: JamesIves/github-pages-deploy-action@v4 - with: - branch: master - folder: '.' - token: ${{ secrets.README_UPDATER_PAT }} + + - name: Commit and push changes 🚀 + env: + GITHUB_TOKEN: ${{ secrets.README_UPDATER_PAT }} + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add . + git diff --quiet && git diff --staged --quiet || git commit -m "Update Sponsors in README" + git push