Skip to content

πŸ”„ Material Design #163

πŸ”„ Material Design

πŸ”„ Material Design #163

name: πŸ”„ Material Design
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * 0"
defaults:
run:
working-directory: src/Projektanker.Icons.Avalonia.MaterialDesign
jobs:
sync:
name: πŸ”„ Sync Material Design
runs-on: ubuntu-latest
outputs:
modified: ${{ steps.git-check.outputs.modified }}
steps:
- name: πŸ›’ Checkout
uses: actions/checkout@v4
- name: πŸ“₯ Download repository archive
run: wget -O archive.zip https://github.com/Templarian/MaterialDesign-SVG/archive/master.zip
- name: πŸ“¦ unzip archive
run: unzip archive.zip -d temp
- name: 🧹 Clear Assets directory
run: rm ./Assets/*
- name: 🚚 Move *.svg to Assets directory
run: find temp -iname '*.svg' -type f -exec mv -nv -t 'Assets' -- {} +
- name: 🧹 Remove temporary files
run: |
rm -r ./temp
rm archive.zip
- name: β„Ή git status
run: git status
- name: πŸ”Ž Check for modified files
id: git-check
run: echo modified=$([ -z "`git status --porcelain`" ] && echo "false" || echo "true") >> $GITHUB_OUTPUT
- name: 🟣 Setup
if: ${{ steps.git-check.outputs.modified == 'true' }}
uses: actions/setup-dotnet@v4
- name: πŸ§ͺ dotnet test
if: ${{ steps.git-check.outputs.modified == 'true' }}
run: dotnet test --configuration Release
- name: πŸ’¬ Create Pull Request
if: ${{ steps.git-check.outputs.modified == 'true' }}
uses: peter-evans/create-pull-request@v6
with:
branch: material-design
commit-message: "Material Design icons changed."
title: "feat(Material Design): πŸ”„ icons changed."