-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (32 loc) · 1.06 KB
/
fetch-weekly.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
name: Weekly dataset updates
on:
workflow_dispatch: # allow manual triggering
schedule:
- cron: "0 0 * * 0" # Every Sunday at midnight
jobs:
update_dataset:
strategy:
matrix:
datasource: ${{ fromJson(vars.WEEKLY_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
uses: ./.github/workflows/update-pinecone.yml
with:
datasource: "all"
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