Skip to content

Commit

Permalink
Update upload_to_es.sh (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
ablnk authored Mar 5, 2025
1 parent e13c24e commit 6775f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/upload_to_es.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

REPORT_DIR=/home/runner/work/oblt-playwright/
FILES=$(find "$REPORT_DIR" -type f -name "*.json" ! -name "results.json" ! -name "*authentication.json" ! -name "package.json" ! -name "package-lock.json")
FILES=$(find "$REPORT_DIR" -type f -name "20*.json" ! -name "results.json" ! -name "*authentication.json" ! -name "package.json" ! -name "package-lock.json")
for file in $FILES; do
echo "Found file: $file"
curl -XPOST "$REPORTING_CLUSTER_ES$REPORTING_CLUSTER_INDEX/_doc/?pretty" -H "Authorization: $REPORTING_CLUSTER_API_KEY" -H "Content-Type: application/json" --data-binary "@$file"
Expand Down

0 comments on commit 6775f34

Please sign in to comment.