-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
41 lines (34 loc) · 1.07 KB
/
UpdateDirectory.yml
File metadata and controls
41 lines (34 loc) · 1.07 KB
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
# This workflow keeps DIRECTORY.md up to date.
# On protected default branches, it opens a pull request instead of pushing directly.
name: Update Directory
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
updateDirectory:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: 📦 Install dependencies
run: npm ci
- name: 🗄️ Create Directory from JS files
run: node .github/workflows/UpdateDirectory.js
- name: 🤓 Open pull request for DIRECTORY.md updates (if needed)
uses: peter-evans/create-pull-request@v7
with:
branch: ci/update-directory
delete-branch: true
commit-message: "chore: update DIRECTORY.md"
title: "chore: update DIRECTORY.md"
body: |
Automated update of `DIRECTORY.md` generated by `.github/workflows/UpdateDirectory.js`.
add-paths: |
DIRECTORY.md