Skip to content

Commit 774e85a

Browse files
committed
chore: fix action to update patterns list PR
1 parent 2ff6ed1 commit 774e85a

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/update-patterns-list.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
permissions:
1515
contents: write
16+
pull-requests: write
1617

1718
steps:
1819
- uses: actions/checkout@v4
@@ -25,10 +26,21 @@ jobs:
2526
- name: Update README
2627
run: node scripts/update-patterns-list.js
2728

28-
- name: Commit changes
29-
run: |
30-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
31-
git config --local user.name "github-actions[bot]"
32-
git add README.md
33-
git diff --quiet && git diff --staged --quiet || git commit -m "docs: update patterns list [skip ci]"
34-
git push
29+
- name: Create Pull Request
30+
uses: peter-evans/create-pull-request@v6
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}
33+
commit-message: "docs: update patterns list [skip ci]"
34+
title: "docs: update patterns list"
35+
body: |
36+
This PR updates the patterns list in README.md based on the current state of patterns in the repository.
37+
38+
- Updates completion status of patterns
39+
- Adds new patterns
40+
- Updates links to completed patterns
41+
branch: update-patterns-list
42+
base: main
43+
delete-branch: true
44+
labels: |
45+
documentation
46+
automated pr

0 commit comments

Comments
 (0)