diff options
author | HiDeoo | 2024-04-08 15:40:20 +0200 |
---|---|---|
committer | GitHub | 2024-04-08 15:40:20 +0200 |
commit | 418d386722a4caa0158efe3bd399909bab95d59c (patch) | |
tree | f210395e0b42272d7e5959928b9bf8ad40ce0d40 | |
parent | c6be920ef26ef70f554447c00df73e50b9c70f3e (diff) | |
download | IT.starlight-418d386722a4caa0158efe3bd399909bab95d59c.tar.gz IT.starlight-418d386722a4caa0158efe3bd399909bab95d59c.tar.bz2 IT.starlight-418d386722a4caa0158efe3bd399909bab95d59c.zip |
ci: add file icons generator workflow (#1604)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
-rw-r--r-- | .github/workflows/file-icons.yml | 45 |
1 files changed, 45 insertions, 0 deletions
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. |