-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (53 loc) · 1.53 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Daily job
on:
workflow_dispatch: {}
schedule:
# every day at 3am
- cron: '0 3 * * *'
env:
NODE_VERSION: 20
PNPM_VERSION: 8.6.7
jobs:
update-movies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: '${{ env.NODE_VERSION }}'
- uses: pnpm/action-setup@v2
with:
version: '${{ env.PNPM_VERSION }}'
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Fetch movies info
run: |
pnpm letterboxd:update
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update movies
- name: Fetch records info
run: |
pnpm discogs:download \
--api-token "${{ secrets.DISCOGS_API_KEY}}"
- uses: stefanzweifel/git-auto-commit-action@v4
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
- name: Fetch list
run: |
pnpm ledger:restaurants-and-cafes \
--file "$GITHUB_WORKSPACE/ledger/main.ledger"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update Restaurants and Cafes