diff options
author | SachinVin <26602104+SachinVin@users.noreply.github.com> | 2024-04-13 22:59:55 +0530 |
---|---|---|
committer | SachinVin <26602104+SachinVin@users.noreply.github.com> | 2024-04-13 22:59:55 +0530 |
commit | ba0c00b5d1d8dde532bc882e2cf81d70035b370f (patch) | |
tree | 7a696f2071468eb1e0bbfeebb8f974d912b69af3 | |
parent | 145fb6191c108f7e7af8180106b82f0503a7994c (diff) |
sponsors.yml: Create PR instead of trying to push to a protected branch
-rw-r--r-- | .github/workflows/sponsors.yml | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml index 61409225d..64918ce0d 100644 --- a/.github/workflows/sponsors.yml +++ b/.github/workflows/sponsors.yml @@ -18,11 +18,10 @@ jobs: file: 'README.md' if: ${{ github.repository == 'jesseduffield/lazygit' }} - - name: Commit and push if changed - run: |- - git diff - git config --global user.email "actions@users.noreply.github.com" - git config --global user.name "README-bot" - git add README.md - git commit -m "Updated README.md" || exit 0 - git push + - name: Create Pull Request 🚀 + uses: peter-evans/create-pull-request@v6 + with: + commit-message: "README.md: Update Sponsors" + title: "README.md: Update Sponsors" + author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" + delete-branch: true |