Skip to content

Commit

Permalink
cross checking file
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Nov 22, 2024
1 parent 5dffc80 commit 9dd6494
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/export_and_update.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Consolidate and Upload Documentation
name: Consolidate and Update Documentation

on:
pull_request:
branches: [main]

jobs:
consolidate-and-upload:
consolidate-and-update:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -62,6 +62,13 @@ jobs:
merged_file.write(content + "\n\n---\n\n")
EOF
# Step 5: Upload consolidated file as an artifact
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: consolidated-documentation
path: merged_documentation.md

# Step 5: Upload to Vector Store
- name: Upload to Vector Store
env:
Expand Down Expand Up @@ -103,7 +110,9 @@ jobs:
deleted_vector_store_file = client.beta.vector_stores.files.delete(
vector_store_id = vector_store_id,
file_id = old_file_id )
client.files.delete(old_file_id)
print("Old file removed:", deleted_vector_store_file)
if vector_store_id:
Expand Down

0 comments on commit 9dd6494

Please sign in to comment.