-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (44 loc) · 1.24 KB
/
icon-actions.yaml
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
47
name: "Icon actions"
on:
pull_request:
branches:
- "main"
paths:
- "icons/**"
jobs:
checks:
runs-on: "ubuntu-latest"
name: "Check and format icons"
permissions:
contents: "write"
steps:
# Checkout repository
- name: Check out Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
# Install dependencies
- name: Install dependencies
working-directory: ./.github/actions
run: npm ci
# Desktop icons
- name: Update desktop icons
uses: ./.github/actions/dist/desktop-transform
with:
files: "icons/desktop/**/*.svg"
# Mobile icons
- name: Update mobile svg icons
uses: ./.github/actions/dist/mobile-transform
with:
files: "icons/mobile/**/*.svg"
file_type: "svg"
- name: Update mobile xml icons
uses: ./.github/actions/dist/mobile-transform
with:
files: "icons/mobile/**/*.xml"
file_type: "xml"
# Commit changes
- name: Commit changes
uses: ./.github/actions/dist/commit-changes