Skip to content

Update Icon Collection #30

Update Icon Collection

Update Icon Collection #30

Workflow file for this run

name: Update Icon Collection
on:
schedule:
- cron: '0 2 * * 1'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Checkout
uses: actions/checkout@v4
- name: Checkout lucide-icons
run: git clone https://github.com/lucide-icons/lucide.git
- name: Run Generator
run: |
dotnet restore ./src/LucideIcons.Generator
dotnet run --project ./src/LucideIcons.Generator ./lucide ./src/Lucide.Avalonia/
- name: Verify Generated Code
run: dotnet build ./src/Lucide.Avalonia/
- name: Push Changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add ./src/Lucide.Avalonia/IconToGeometry.cs
git add ./src/Lucide.Avalonia/LucideIconKind.cs
git add ./src/Lucide.Avalonia/Metadata/LucideIconInfo.cs
if [ -n "$(git diff --cached --name-only)" ]; then
git commit -m "πŸ”„ Update Icon Collection"
git push
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}