Update 3D Prints Gallery #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |