From 7350f9887eb0364460ef43a8a21a33fe148d8d74 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 9 Nov 2023 10:59:36 +1100 Subject: [PATCH] Update sponsors action (#5887) - Inspired by translations github workflow --- .github/workflows/sponsors.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml index 3d5c153aac..a074753380 100644 --- a/.github/workflows/sponsors.yml +++ b/.github/workflows/sponsors.yml @@ -7,18 +7,27 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - name: Checkout 🛎️ + - name: Checkout Code uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - - name: Generate Sponsors 💖 + - name: Generate Sponsors uses: JamesIves/github-sponsors-readme-action@a2d75a8d58b117b19777a910e284ccb082aaf117 with: token: ${{ secrets.INVENTREE_SPONSORS_TOKEN }} file: 'README.md' organization: true - - name: Deploy to GitHub Pages 🚀 - uses: JamesIves/github-pages-deploy-action@a1ea191d508feb8485aceba848389d49f80ca2dc + - name: Commit files + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git checkout -b sponsors + git add README.md + git commit -m "updated sponsors" + + - name: Push Changes + uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df with: - branch: master - folder: '.' + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: sponsors + force: true