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 }}