-
Notifications
You must be signed in to change notification settings - Fork 179
46 lines (38 loc) · 1.18 KB
/
update-google-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
36
37
38
39
40
41
42
43
44
45
46
name: Update Google Fonts
on:
schedule:
- cron: '0 12 * * 1'
jobs:
update-fonts:
name: Update Google Fonts
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Setup Node
uses: actions/setup-node@v2.2.0
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
cache: npm
- name: Install dependencies
run: npm ci
env:
CI: true
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- name: Update list of Google Fonts
env:
GOOGLE_FONTS_API_KEY: ${{ secrets.GOOGLE_FONTS_API_KEY }}
run: npm run workflow:fonts
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update list of Google Fonts
title: Update list of Google Fonts
body: Fetched the currently available fonts on Google Fonts to update them in the project.
branch: update/google-fonts
labels: Dependencies