-
Notifications
You must be signed in to change notification settings - Fork 98
44 lines (42 loc) · 1.24 KB
/
update-icons.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
name: Update Icons
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
jobs:
update-icons:
runs-on: ubuntu-latest
steps:
- if: github.event_name == 'push'
uses: actions/checkout@v2
- if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v1
with:
node-version: 14.18.1
- name: Download Line Icons
run: npm ci --progress=false && npm run line:download
env:
API_DOWNLOAD_LINE: ${{ secrets.API_DOWNLOAD_LINE }}
STYLE: line
CSS_PREFIX: uil
- name: Download Solid Icons
run: npm run line:download
env:
API_DOWNLOAD_SOLID: ${{ secrets.API_DOWNLOAD_SOLID }}
STYLE: solid
CSS_PREFIX: uis
- name: Download Monochrome Icons
run: npm run monochrome:download
env:
API_DOWNLOAD_MONOCHROME: ${{ secrets.API_DOWNLOAD_MONOCHROME }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Updated Icons