added CI step to trigger label studio sync to target storage #12

Merged
brian merged 1 commits from readd-label-studio-sync-to-minio into main 2025-09-19 00:07:32 +02:00
Showing only changes of commit 51978810f4 - Show all commits
+9 -1
View File
@@ -9,6 +9,14 @@ jobs:
sync_storage:
runs-on: ubuntu-latest
steps:
- name: Sync Label Studio to target storage
env:
LABEL_STUDIO_API_TOKEN: ${{ secrets.LABEL_STUDIO_API_TOKEN }}
run: |
curl -X POST \
-H "Authorization: Token $LABEL_STUDIO_API_TOKEN" \
"https://label-studio.gt-proj.com/api/storages/export/s3/1/sync"
- name: Checkout code
uses: actions/checkout@v4
@@ -25,7 +33,7 @@ jobs:
UV_LINK_MODE: copy
run: uv sync --all-extras
- name: Sync annotations
- name: Sync target storage to annotations
env:
MINIO_ENDPOINT: ${{ vars.MINIO_ENDPOINT }}
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}