From ef7a03522820769ca32f1c37a123ae192495a23c Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Fri, 21 Feb 2025 13:46:22 +0100 Subject: [PATCH] Call the import every week --- .github/workflows/deploy.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c88f3422d76..46dc30fc251 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,6 +2,8 @@ name: Deploy DSpace on: + schedule: + - cron: '0 21 * * 6' # Runs every Saturday at 9 PM workflow_call: inputs: INSTANCE: @@ -37,6 +39,18 @@ on: type: boolean jobs: + import-every-week: + # Only run this job when triggered by the schedule event + if: github.event_name == 'schedule' + runs-on: ubuntu-latest + steps: + - name: Call the deploy action with predefined inputs + uses: ./.github/actions/deploy-dspace # Path to your custom action + with: + INSTANCE: '8' + IMPORT: true + ERASE_DB: true + deploy-5: if: inputs.INSTANCE == '*' || inputs.INSTANCE == '5' runs-on: dspace-dep-1