From 51978810f430c39cd0fb86f07629bcf06021bd5d Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Fri, 19 Sep 2025 00:04:09 +0200 Subject: [PATCH] added CI step to trigger label studio sync to target storage --- .gitea/workflows/sync-annotations.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/sync-annotations.yml b/.gitea/workflows/sync-annotations.yml index 2ca408f..53679cb 100644 --- a/.gitea/workflows/sync-annotations.yml +++ b/.gitea/workflows/sync-annotations.yml @@ -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 }} -- 2.54.0