π Fontawesome #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: π Fontawesome | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 2 * * 0" | |
defaults: | |
run: | |
working-directory: src/Projektanker.Icons.Avalonia.FontAwesome | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
sync: | |
name: π Sync Fontawesome | |
runs-on: ubuntu-latest | |
outputs: | |
modified: ${{ steps.git-check.outputs.modified }} | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v4 | |
- name: π₯ Download icons.json | |
run: wget -O Assets/icons.json https://raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/metadata/icons.json | |
- 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 .NET | |
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: fontawesome | |
commit-message: "FontAwesome icons changed." | |
title: "feat(FontAwesome): π icons changed." |