Skip to content

Update Images

Update Images #4597

Workflow file for this run

name: Update Images
on:
push:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *'
jobs:
run:
name: Update Images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
pip install -U pip
pip install -U -r requirements.txt
- name: Update Images
run: python main.py
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Commit Images
run: |
if [[ "$(git status --porcelain)" != "" ]]; then
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .
git commit -m "Update images"
git push
fi