Skip to content

Generate Screenshots #1

Generate Screenshots

Generate Screenshots #1

name: Generate Screenshots
on:
schedule:
# Runs at 2 AM GMT+8 (18:00 UTC the previous day)
- cron: '0 18 * * *'
workflow_dispatch: # Allows manual triggering
jobs:
generate-screenshots:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Generate Screenshots
run: python main.py
- name: Commit and Push Changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add tools_explored_with_url.json
git diff --quiet && git diff --staged --quiet || (git commit -m "Update screenshots" && git push)