-
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.5 KB
/
Copy pathgenerate_cache.yml
File metadata and controls
45 lines (38 loc) · 1.5 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
name: Update cache
on:
push:
branches: [dev]
schedule:
- cron: "0 0 * * *" # Runs daily at midnight UTC
workflow_dispatch: # Allows manual triggering
jobs:
update_cache:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt install python3-dev swig libssl-dev libfann-dev portaudio19-dev libpulse-dev python3-fann2
python -m pip install build wheel uv
python -m venv venv
source venv/bin/activate
uv pip install requests langcodes ovos-core ovos-padatious -c https://github.com/OpenVoiceOS/ovos-releases/raw/refs/heads/main/constraints-alpha.txt
uv pip install --pre -r https://raw.githubusercontent.com/OpenVoiceOS/OpenVoiceOS/refs/heads/main/lists/skills.list
- name: Update intent_cache
run: |
source venv/bin/activate
python gen_cache.py
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git checkout dev || git checkout -b dev
git add -A # Track all changes, including new files
git diff --staged --quiet || git commit -m "Update intent_cache"
git push origin dev