-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.15 KB
/
embed.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
40
41
42
name: Embed the transcripts and add to chroma
on:
workflow_dispatch:
schedule:
# Let 5 minutes after download_transcripts.yml
- cron: "46 23 * * 6" # “At 23:46 on Saturday.”
env:
HF_ACCESS_TOKEN: ${{ secrets.HF_ACCESS_TOKEN }}
TALKING_PYTHON_ACCESS_TOKEN: ${{ secrets.TALKING_PYTHON_ACCESS_TOKEN }}
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements_embed.txt
pip install ./src
- name: Run flow
run: python flows/embed.py hugging_face release download
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add -A
timestamp=$(date -u)
git commit -m "embed transcript: ${timestamp}" || exit 0
git push