-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (55 loc) · 1.53 KB
/
pipeline.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
60
61
62
63
64
65
66
67
68
69
name: Run pipeline
on:
workflow_dispatch:
inputs:
cache:
type: boolean
description: Use cache (files in /raw)
default: false
schedule:
- cron: "0 0 * * *"
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- name: Debug dump
uses: crazy-max/ghaction-dump-context@v2
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: SSH debug
if: runner.debug == '1'
uses: mxschmitt/action-tmate@v3
- name: Install packages
run: ./run.sh --install
- name: Install Playwright
uses: ./.github/actions/install-playwright
with:
working-directory: ./data
- name: Google auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.AUTH_GOOGLE }}
- name: Run pipeline
run: |
touch data/.env.local
./run.sh
env:
AUTH_GITHUB: ${{ secrets.AUTH_GITHUB }}
CACHE: ${{ inputs.cache && 'true' || '' }}
- name: Commit results
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update compiled data
# - name: Open pull request
# uses: peter-evans/create-pull-request@v6
# with:
# branch: update-data
# title: Update compiled data