Skip to content

V1.18.0

V1.18.0 #31

Workflow file for this run

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