-
-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (35 loc) · 1.03 KB
/
list_iconpacks.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
name: List Iconpacks
on:
push:
branches:
- main
paths:
- "iconpacks/list.json"
- ".github/scripts/list_iconpacks/**/*.*"
- ".github/workflows/list_iconpacks.yml"
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
jobs:
write:
runs-on: ubuntu-latest
name: Write Readme
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: pnpm/action-setup@v3
- run: pnpm i
- name: Write ICONPACKS.md
run: node .github/scripts/list_iconpacks/index.mjs
- name: Commit changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs/ICONPACKS.md
git commit -m "chore: update iconpacks (${{ github.sha || github.event_name }})" | true
git pull
git push