From 418d386722a4caa0158efe3bd399909bab95d59c Mon Sep 17 00:00:00 2001 From: HiDeoo Date: Mon, 8 Apr 2024 15:40:20 +0200 Subject: ci: add file icons generator workflow (#1604) Co-authored-by: Chris Swithinbank --- .github/workflows/file-icons.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/file-icons.yml diff --git a/.github/workflows/file-icons.yml b/.github/workflows/file-icons.yml new file mode 100644 index 00000000..56148a84 --- /dev/null +++ b/.github/workflows/file-icons.yml @@ -0,0 +1,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. -- cgit