CI: prevent running of scheduled cleanup task if multiple Gitlab CI/CD schedules are set
This commit is contained in:
parent
072f060ce7
commit
597dbb72ed
@ -81,7 +81,10 @@ repository-cleanup:
|
||||
only:
|
||||
- schedules
|
||||
script:
|
||||
- ./scripts/package_uploader.sh --cleanup $(cd ./packages; echo *)
|
||||
- |
|
||||
if [ -n "$SCHEDULED_REPOSITORY_CLEANUP" ]; then
|
||||
./scripts/package_uploader.sh --cleanup $(cd ./packages; echo *)
|
||||
fi
|
||||
retry:
|
||||
max: 2
|
||||
when:
|
||||
|
Loading…
Reference in New Issue
Block a user