-
-
Notifications
You must be signed in to change notification settings - Fork 559
45 lines (37 loc) · 1.1 KB
/
file-icons.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
name: File icons generator
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
icons:
name: Generate file icons
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: Install Dependencies
run: pnpm i
- name: Run file icons generator
run: pnpm build
working-directory: packages/file-icons-generator
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: ci/file-icons
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
commit-message: 'ci: update file icons'
title: 'ci: update file icons'
body: |
This PR is auto-generated by a GitHub action to update the file icons and file tree definitions available in Starlight.