2023-01-16 11:24:28 -06:00
|
|
|
name: "Update Nerd Fonts"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2023-05-02 14:57:12 -05:00
|
|
|
schedule:
|
2024-11-22 11:58:36 -06:00
|
|
|
# “At 00:00 on Monday.”
|
|
|
|
- cron: "0 0 * * 1"
|
2023-01-16 11:24:28 -06:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
change-batteries:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-11-22 11:58:36 -06:00
|
|
|
uses: actions/checkout@v4
|
2023-01-16 11:24:28 -06:00
|
|
|
|
|
|
|
- name: Setup Git Bot
|
|
|
|
run: |
|
|
|
|
git --version
|
2023-09-29 18:37:19 -05:00
|
|
|
git config user.name 'github-actions[bot]'
|
|
|
|
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
2023-01-16 11:24:28 -06:00
|
|
|
|
|
|
|
- name: Check Nerd-Fonts Source
|
|
|
|
run: make update-src
|
|
|
|
|
|
|
|
- name: Commit Updates
|
|
|
|
run: |
|
|
|
|
if [[ -n "$(git status --porcelain)" ]]; then
|
|
|
|
git add -A
|
|
|
|
git commit -m "chore: change batteries"
|
|
|
|
git push
|
|
|
|
fi
|