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