Skip to content

Commit 55b21df

Browse files
committed
Update sponsors action
1 parent be2d80d commit 55b21df

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/sponsors.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout 🛎️
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313

1414
- name: Generate Sponsors 💖
15-
uses: JamesIves/github-sponsors-readme-action@v1.0.8
15+
uses: JamesIves/github-sponsors-readme-action@v1.2.2
1616
with:
1717
token: ${{ secrets.SPONSORS_TOKEN }}
18-
file: 'README.md'
18+
file: "README.md"
19+
if: ${{ github.repository == 'jesseduffield/lazydocker' }}
1920

20-
- name: Commit and push if changed
21-
run: |-
22-
git diff
23-
git config --global user.email "[email protected]"
24-
git config --global user.name "README-bot"
25-
git add README.md
26-
git commit -m "Updated README.md" || exit 0
27-
git push
21+
- name: Create Pull Request 🚀
22+
uses: peter-evans/create-pull-request@v6
23+
with:
24+
commit-message: "README.md: Update Sponsors"
25+
title: "README.md: Update Sponsors"
26+
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
27+
labels: "ignore-for-release"
28+
delete-branch: true

0 commit comments

Comments
 (0)