Files
visual-semiotic-ai-analysis/.gitea/workflows/sync-annotations.yml
T
Brian Bjarke Jensen c3d60bbd44
Code Quality Pipeline / code-quality (pull_request) Successful in 1m20s
Test Python Package / test (pull_request) Successful in 49s
added CI step to sync between label studio and output bucket in minio
2025-09-18 19:19:30 +02:00

21 lines
673 B
YAML

name: Sync Label Studio
on:
schedule:
# This job will run every day at 03:00 AM
- cron: "0 3 * * *"
jobs:
sync_storage:
runs-on: ubuntu-latest
steps:
- name: Sync Label Studio Target Storage
env:
LABEL_STUDIO_API_TOKEN: ${{ secrets.LABEL_STUDIO_API_TOKEN }}
run: |
# Replace <your_label_studio_url> and <your_storage_id> with your actual values.
# The storage_id can be found in the URL when you view your cloud storage in Label Studio.
curl -X POST \
-H "Authorization: Token $LABEL_STUDIO_API_TOKEN" \
"https://label-studio.gt-proj.com/api/storages/export/s3/1/sync"