Update ThinkyDailies betaImages #26
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 ThinkyDailies betaImages | |
| on: | |
| # run at 12:00 | |
| schedule: | |
| - cron: "0 12 * * *" | |
| # manual run | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| - name: Run | |
| working-directory: thinkyDailies | |
| run: ./betaImages.py | |
| - name: Commit | |
| working-directory: thinkyDailies | |
| run: | | |
| git add betaImages.json | |
| git diff --staged --quiet && exit 0 | |
| echo Uploading | |
| git config user.name 'github-actions' | |
| git config user.email 'github-actions@github.com' | |
| git commit -m "Updated ThinkyDailies betaImages" | |
| git push |