mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
sponsors.yml: Create PR instead of trying to push to a protected branch
This commit is contained in:
parent
145fb6191c
commit
ba0c00b5d1
1 changed files with 7 additions and 8 deletions
15
.github/workflows/sponsors.yml
vendored
15
.github/workflows/sponsors.yml
vendored
|
@ -18,11 +18,10 @@ jobs:
|
||||||
file: 'README.md'
|
file: 'README.md'
|
||||||
if: ${{ github.repository == 'jesseduffield/lazygit' }}
|
if: ${{ github.repository == 'jesseduffield/lazygit' }}
|
||||||
|
|
||||||
- name: Commit and push if changed
|
- name: Create Pull Request 🚀
|
||||||
run: |-
|
uses: peter-evans/create-pull-request@v6
|
||||||
git diff
|
with:
|
||||||
git config --global user.email "actions@users.noreply.github.com"
|
commit-message: "README.md: Update Sponsors"
|
||||||
git config --global user.name "README-bot"
|
title: "README.md: Update Sponsors"
|
||||||
git add README.md
|
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
|
||||||
git commit -m "Updated README.md" || exit 0
|
delete-branch: true
|
||||||
git push
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue