Skip to content

Update 3D Prints Gallery #2

Update 3D Prints Gallery

Update 3D Prints Gallery #2

Workflow file for this run

name: Update 3D Prints Gallery
on:
schedule:
# Every Monday at 7:00 AM IST (1:30 AM UTC)
- cron: '30 1 * * 1'
workflow_dispatch: # Allow manual trigger from GitHub Actions tab
jobs:
update-gallery:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install requests
- name: Fetch prints from Google Photos
run: python scripts/fetch_prints.py
- name: Commit updated data if changed
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: refresh 3D prints gallery data [skip ci]"
file_pattern: prints/data.js
commit_user_name: "prints-bot"
commit_user_email: "actions@github.com"