-
Notifications
You must be signed in to change notification settings - Fork 28
46 lines (43 loc) · 1.08 KB
/
font.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: Font
on:
schedule:
- cron: '40 19 * * *'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
path: repoMaster
- name: Checkout branch font
uses: actions/checkout@v2
with:
ref: font
path: repoFont
- name: Move files
run: |
cp -r repoMaster/data/ repoFont/
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Build font
run: |
cd repoFont
yarn --frozen-lockfile
yarn font
cp -r ./dist/font/ ../repoMaster/data/
- name: Commit changes
run: |
cd repoMaster
git add --a
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "tenka"
echo "$(git commit -m 'Update font' | tr '\n' ' ')"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: master
directory: repoMaster
github_token: ${{ secrets.GITHUB_TOKEN }}