Daily job #604
This file contains 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: Daily job | |
on: | |
workflow_dispatch: {} | |
schedule: | |
# every day at 3am | |
- cron: "0 3 * * *" | |
jobs: | |
daily: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
cache-suffix: "optional-suffix" | |
- run: uv run ./scripts/update/letterboxd.py | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update movies | |
- run: uv run ./scripts/update/discogs.py --token "${{ secrets.DISCOGS_API_KEY }}" | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update records | |
- name: Checkout ledger | |
uses: actions/checkout@v3 | |
with: | |
repository: ngalaiko/ledger | |
token: ${{ secrets.GH_PAT }} | |
path: "ledger" | |
ref: "master" | |
- name: Setup hledger | |
uses: ngalaiko/setup-hledger@v1 | |
- run: uv run ./scripts/update/hledger.py --file "$GITHUB_WORKSPACE/ledger/main.ledger" | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update Restaurants and Cafes |