Skip to content

Commit b8c9bf4

Browse files
Call the import every week (#787)
1 parent bcac8cf commit b8c9bf4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/deploy.yml

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name: Deploy DSpace
33

44
on:
5+
schedule:
6+
- cron: '0 21 * * 6' # Runs every Saturday at 9 PM
57
workflow_call:
68
inputs:
79
INSTANCE:
@@ -37,6 +39,18 @@ on:
3739
type: boolean
3840

3941
jobs:
42+
import-every-week:
43+
# Only run this job when triggered by the schedule event
44+
if: github.event_name == 'schedule'
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Call the deploy action with predefined inputs
48+
uses: ./.github/actions/deploy-dspace # Path to your custom action
49+
with:
50+
INSTANCE: '8'
51+
IMPORT: true
52+
ERASE_DB: true
53+
4054
deploy-5:
4155
if: inputs.INSTANCE == '*' || inputs.INSTANCE == '5'
4256
runs-on: dspace-dep-1

0 commit comments

Comments
 (0)