π Material Design #189
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v7 | |
with: | |
branch: material-design | |
commit-message: "Material Design icons changed." | |
title: "feat(Material Design): π icons changed." |