forked from google/material-design-icons
-
Notifications
You must be signed in to change notification settings - Fork 56
39 lines (34 loc) · 1.15 KB
/
check-for-font-updates.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
name: Check for Font Updates
on:
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm install
- name: Check for font updates
id: updates
run: npm run check-for-font-updates && echo ::set-output name=valid::1 || true
- name: Get Timestamp
if: ${{ steps.script.updates.valid }}
id: timestamp
run: echo ::set-output name=value::$(date +%s)
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
if: ${{ steps.script.updates.valid }}
with:
commit-message: "feat(font): auto-update font from remote cdn"
title: "feat(font): auto-update font from remote cdn ${{ steps.timestamp.outputs.value }}"
body: |
- check for font updates
branch: check-for-font-updates-${{ steps.timestamp.outputs.value }}