-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.21 KB
/
Copy pathdaily.yml
File metadata and controls
49 lines (39 loc) · 1.21 KB
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
name: Update Data
on:
schedule:
- cron: '0 17 * * *'
- cron: '0 23 * * *'
workflow_dispatch:
permissions: {}
concurrency:
group: daily-update
cancel-in-progress: false
jobs:
update-rates:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
issues: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup JS environment
uses: ./.github/actions/setup-js
with:
playwright: "true"
- name: Run daily update
env:
GH_TOKEN: ${{ github.token }}
run: xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x24" bun run daily
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add db/**/*.csv
git diff --staged --quiet || git commit -m "data: daily rates update"
git push