Skip to content

Update Icons

Update Icons #284

Workflow file for this run

name: Update Icons
on:
schedule:
- cron: '0 0 * * *' # Runs daily at 00:00 UTC
workflow_dispatch:
permissions:
contents: write
jobs:
update_icons:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests Pillow
- name: Run script
run: python main.py
- name: commit changes
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
git commit -m "update icons"
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}