-
-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (33 loc) · 997 Bytes
/
update-fonts.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
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@v6
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