Repository navigation
refresh-pricing #16
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: refresh-pricing | |
| on: | |
| schedule: | |
| - cron: "17 6 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| refresh: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Refresh this model's pricing and README table | |
| run: python tools/snapshot.py | |
| - name: Validate | |
| run: python tools/check_links.py | |
| - name: Commit when the snapshot moved | |
| run: | | |
| if git diff --quiet; then | |
| echo "no pricing change today" | |
| exit 0 | |
| fi | |
| git config user.name "pricing-bot" | |
| git config user.email "pricing-bot@users.noreply.github.com" | |
| git add -A | |
| git commit -m "chore: daily pricing snapshot $(date -u +%Y-%m-%d)" | |
| git push |