-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (35 loc) · 1.16 KB
/
fetch-daily.yml
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
name: Daily dataset updates
on:
workflow_dispatch: # allow manual triggering
schedule:
- cron: "0 0 * * *" # Every day at midnight
jobs:
update_dataset:
strategy:
matrix:
datasource: ${{ fromJson(vars.DAILY_DATASOURCES) }}
uses: ./.github/workflows/fetch-dataset.yml
with:
datasource: ${{ matrix.datasource }}
coda_token: ${{ inputs.coda_token }}
airtable_api_key: ${{ inputs.airtable_api_key }}
youtube_api_key: ${{ inputs.youtube_api_key }}
db_user: ${{ inputs.db_user }}
db_password: ${{ inputs.db_password }}
db_host: ${{ inputs.db_host }}
secrets: inherit
update_indexes:
needs: update_dataset
strategy:
matrix:
datasource: ${{ fromJson(vars.DAILY_DATASOURCES) }}
uses: ./.github/workflows/update-pinecone.yml
with:
datasource: ${{ matrix.datasource }}
db_user: ${{ inputs.db_user }}
db_password: ${{ inputs.db_password }}
db_host: ${{ inputs.db_host }}
openai_api_key: ${{ inputs.openai_api_key }}
pinecone_api_key: ${{ inputs.pinecone_api_key }}
pinecone_environment: ${{ inputs.pinecone_environment }}
secrets: inherit