list iconpacks #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |