-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (40 loc) · 1.14 KB
/
pipeline.yml
File metadata and controls
50 lines (40 loc) · 1.14 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
50
name: Data Pipeline
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
inputs:
full_refresh:
description: 'Full refresh (ignore SHA)'
required: false
default: 'false'
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_KEY: ${{ secrets.SUPABASE_SERVICE_KEY }}
GITHUB_TOKENS: ${{ secrets.GH_TOKENS }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
jobs:
pipeline:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- name: Build dependencies
run: pnpm --filter @shareskill/shared build && pnpm --filter @shareskill/db build
- name: Run Pipeline
run: pnpm --filter @shareskill/pipeline start
env:
FULL_REFRESH: ${{ github.event.inputs.full_refresh }}
- name: Notify on failure
if: failure()
run: |
echo "Pipeline failed!"