owenvoke / blade-fontawesome

A package to easily make use of Font Awesome in your Laravel Blade views.
https://packagist.org/packages/owenvoke/blade-fontawesome
MIT License
167 stars 28 forks source link

Add CI for auto-updating icons #1

Closed owenvoke closed 4 years ago

owenvoke commented 4 years ago

Description

Add a new CI workflow that runs daily and checks for Font Awesome releases, downloads the icons, and opens a PR with the updates.

Possible implementation

This can be done using a scheduled GitHub Action that checks the GitHub Releases for Font Awesome. This can be daily using 0 0 * * * for the cron.

The link to download releases for desktop (which are smaller) is:

https://use.fontawesome.com/releases/v{$version}/fontawesome-free-{$version}-desktop.zip
// or
https://github.com/FortAwesome/Font-Awesome/releases/download/{$version}/fontawesome-free-{$version}-desktop.zip

Then extract the contents of the svgs directory to dist in this repo, run the bin/compile.sh, and it should be good to open the PR. 👍