-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.11 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
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: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo build -p update
- run: cargo run -p update letterboxd
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update movies
- run: cargo run -p update discogs --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: cargo run -p update hledger --file "$GITHUB_WORKSPACE/ledger/main.ledger"
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update Restaurants and Cafes