diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1902e34..e705900 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,12 @@ default: variables: DATASET: - description: "Dataset to import (either dole, jorf, kali or legi" + description: "Select the dataset to import." + options: + - "dole" + - "jorf" + - "kali" + - "legi" value: dole ## Ensure that all the Git tags are retrieved. ## https://docs.gitlab.com/ee/user/project/pipelines/settings.html#git-shallow-clone @@ -19,6 +24,7 @@ stages: - build # - test - download + - update build: stage: build @@ -87,3 +93,10 @@ download: - npx tsx src/scripts/download_dila_dataset.ts ${DATASET} dila-data/ --push timeout: 6 hours + +update_database: + stage: update + only: + - schedules + - web + trigger: tricoteuses/tricoteuses-legal-update