Skip to content

Commit

Permalink
Update import_packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yrobla authored Dec 5, 2024
1 parent 2cad22c commit 488dc19
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/import_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Sync vector DB

on:
workflow_dispatch:
inputs:
inputs:
enable_artifact_download:
description: 'Enable artifact download step'
type: boolean
Expand Down Expand Up @@ -44,16 +44,18 @@ jobs:
if_no_artifact_found: ignore

- name: Run sync
env:
BACKUP_FILESYSTEM_PATH: /tmp/
BACKUP_FOLDER: backup
run: |
export PYTHONPATH=$PYTHONPATH:./
export BACKUP_FILESYSTEM_PATH=./backup_weaviate/
# Conditionally export the variables only if artifact download is enabled
if [ "${{ github.event.inputs.enable_artifact_download }}" == "true" ]; then
export BACKUP_FOLDER=backup
fi
python scripts/import_packages.py
- name: 'Upload Backup Files'
uses: actions/upload-artifact@v4
with:
name: backup_weaviate
path: /tmp/backup-*
path: /backup_weaviate/backup*
retention-days: 90

0 comments on commit 488dc19

Please sign in to comment.