Skip to content

Commit

Permalink
sponsors.yml: Create PR instead of trying to push to a protected branch
Browse files Browse the repository at this point in the history
  • Loading branch information
SachinVin committed Apr 13, 2024
1 parent 145fb61 commit ba0c00b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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

0 comments on commit ba0c00b

Please sign in to comment.