From c3d60bbd449ec3ed1897afa3e5db3375cdba61f8 Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Thu, 18 Sep 2025 19:19:30 +0200 Subject: [PATCH] added CI step to sync between label studio and output bucket in minio --- .gitea/workflows/sync-annotations.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/sync-annotations.yml diff --git a/.gitea/workflows/sync-annotations.yml b/.gitea/workflows/sync-annotations.yml new file mode 100644 index 0000000..b0e0230 --- /dev/null +++ b/.gitea/workflows/sync-annotations.yml @@ -0,0 +1,20 @@ +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 and 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"