File icons generator #22
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: 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. |