Skip to content

Download monkeytype icon #446

Download monkeytype icon

Download monkeytype icon #446

name: Download monkeytype icon
on:
schedule:
- cron: "0 */24 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dependencies
run: npm install
- name: Run monkeytype icon script
run: node public/script/monkeytype-icon.js
- name: Configure git
run: |
git config --global user.name github-actions
git config --global user.email github-actions[bot]@users.noreply.github.com
- name: Commit and push changes
run: |
if git diff-index --quiet HEAD --; then
echo "No changes detected."
else
git add .
git commit -m "chore: update monkeytype icon"
fi
continue-on-error: true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}