mirror of
https://github.com/daylinmorgan/monolisa-nerdfont-patch.git
synced 2024-12-21 22:40:44 -06:00
ci: add change batteries cron job
This commit is contained in:
parent
2425723226
commit
d0adac8824
2 changed files with 35 additions and 1 deletions
34
.github/workflows/ci.yml
vendored
Normal file
34
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: "Update Nerd Fonts"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
# 1st and 15th at 12:00 AM
|
||||
- cron: "0 0 1,15 * *"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
change-batteries:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Git Bot
|
||||
run: |
|
||||
git --version
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
|
||||
- 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
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
REPO_URL=git@github.com:ryanoasis/nerd-fonts.git
|
||||
REPO_URL='https://github.com/ryanoasis/nerd-fonts.git'
|
||||
|
||||
rm -rf nerd-fonts
|
||||
|
||||
|
|
Loading…
Reference in a new issue