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:
|
only:
|
||||||
- schedules
|
- schedules
|
||||||
script:
|
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:
|
retry:
|
||||||
max: 2
|
max: 2
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in New Issue