-
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (46 loc) · 1.46 KB
/
update-patterns-list.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Update Patterns List
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "content/en/patterns/**"
jobs:
update-readme:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
uses: ./.github/actions/install
- name: Update README
run: node scripts/update-patterns-list.js
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT_TOKEN }}
commit-message: "docs: update patterns list [skip ci]"
title: "docs: update patterns list"
body: |
This PR updates the patterns list in README.md based on the current state of patterns in the repository.
- Updates completion status of patterns
- Adds new patterns
- Updates links to completed patterns
branch: update-patterns-list
base: main
delete-branch: true
labels: |
documentation
automated pr
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>