Skip to content

πŸ”„ Fontawesome #169

πŸ”„ Fontawesome

πŸ”„ Fontawesome #169

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@v6
with:
branch: fontawesome
commit-message: "FontAwesome icons changed."
title: "feat(FontAwesome): πŸ”„ icons changed."