diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml index 287000c..a059c0a 100644 --- a/.github/workflows/sponsors.yml +++ b/.github/workflows/sponsors.yml @@ -23,8 +23,21 @@ jobs: env: SPONSORKIT_AFDIAN_USER_ID: ${{ secrets.SPONSORKIT_AFDIAN_USER_ID }} SPONSORKIT_AFDIAN_TOKEN: ${{ secrets.SPONSORKIT_AFDIAN_TOKEN }} - - uses: EndBug/add-and-commit@v9 + + - name: Commit and push if changes are made + run: | + git config --global user.email "734243792@qq.com" + git config --global user.name "FliPPeDround" + git add -A + git commit -m "chore: update deps" || echo "No changes to commit" + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 with: - message: "chore: update sponsors" - env: - GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} + token: ${{ secrets.MY_GITHUB_TOKEN }} + commit-message: 'chore: update sponsors' + title: 'chore: update sponsors' + body: Update sponsors + branch: chore/update-sponsors + delete-branch: true + base: main