-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.22 KB
/
daily.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
- uses: actions/setup-python@v5
with:
cache: "pip"
- run: python3 -m venv venv
- run: source venv/bin/activate
- run: python3 -m pip install -r requirements.txt
- run: python3 ./scripts/update/letterboxd.py
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update movies
- run: python3 ./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: python3 ./scripts/update/hledger.py --file "$GITHUB_WORKSPACE/ledger/main.ledger"
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update Restaurants and Cafes