-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
1,735 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Update Font List | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
fetch_fonts: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Fetch Fonts | ||
run: | | ||
scripts/get_fonts_list.py | ||
env: | ||
API_KEY: ${{ secrets.MINIMAL_VUE_SNT_KEY }} | ||
|
||
- name: Check if File Changed | ||
id: check_file_changed | ||
run: | | ||
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep 'path/to/your/file'; then | ||
echo "File has changed." | ||
echo "::set-output name=file_changed::true" | ||
else | ||
echo "File has not changed." | ||
echo "::set-output name=file_changed::false" | ||
fi | ||
- name: Update Version in Manifest | ||
if: steps.check_file_changed.outputs.file_changed == 'true' | ||
run: | | ||
scripts/increment_minor_version.py | ||
- name: Commit and push changes | ||
if: steps.check_file_changed.outputs.file_changed == 'true' | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add -A | ||
git commit -m "Create latest build" | ||
git push |
Oops, something went wrong.