@@ -51,33 +51,18 @@ jobs:
51
51
github_token : ${{ github.token }}
52
52
workflow : " .github/workflows/import_packages.yml"
53
53
workflow_conclusion : success
54
- name : backup_weaviate
54
+ name : sqlite_vectordb_file
55
55
path : /tmp/
56
56
name_is_regexp : true
57
57
skip_unpack : false
58
- if_no_artifact_found : ignore
58
+ if_no_artifact_found : ignore
59
59
60
- - name : Create folder if artifact download is not enabled
61
- if : ${{ github.event.inputs.enable_artifact_download == 'false' }}
60
+ - name : ' Run import_packages.py'
62
61
run : |
63
- mkdir -p /tmp/backup_weaviate
64
- echo "Folder ./backup_weaviate created because artifact download is disabled."
62
+ python scripts/import_packages.py --jsonl-dir /tmp --vec-db-path /tmp/sqlite_data/vectordb.db
65
63
66
- - name : Run sync
67
- run : |
68
- export PYTHONPATH=$PYTHONPATH:./
69
- export BACKUP_FILESYSTEM_PATH=/tmp/backup_weaviate/
70
- export BACKUP_FOLDER=backup
71
- # Conditionally export the variables only if artifact download is enabled
72
- if [ "${{ github.event.inputs.enable_artifact_download }}" == "true" ]; then
73
- python scripts/import_packages.py --jsonl-dir /tmp/jsonl-files/
74
- else
75
- python scripts/import_packages.py --restore-backup False --jsonl-dir /tmp/jsonl-files/
76
- fi
77
-
78
- - name : ' Upload Backup Files'
64
+ - name : ' Upload SQLite Vector DB File'
79
65
uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
80
66
with :
81
- name : backup_weaviate
82
- path : /tmp/backup_weaviate/backup*
83
- retention-days : 90
67
+ name : sqlite_vectordb_file
68
+ path : /tmp/sqlite_data/vectordb.db
0 commit comments