Update Font Cache #28
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: Update Font Cache | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '37 21 28 * *' | |
jobs: | |
update-fonts: | |
runs-on: ubuntu-latest | |
container: # https://stackoverflow.com/a/74341376 | |
image: node:lts | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Install Chromium | |
run: | | |
apt update | |
apt install -y chromium | |
- name: Fix file ownerships | |
run: chown -R "$(whoami):$(whoami)" . | |
- run: npx pnpm i | |
- run: npx pnpm build | |
env: | |
UPDATE_COMMON_GLYPHS: 1 | |
PLAUSIBLE_TOKEN: ${{ secrets.PLAUSIBLE_TOKEN }} | |
- uses: peter-evans/create-pull-request@v7 | |
with: | |
author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>' | |
commit-message: 'chore: update font cache' | |
title: 'chore: update font cache' | |
branch: create-pull-request/update-fonts | |
delete-branch: true |