File tree 1 file changed +6
-2
lines changed
ci/linux-repository-builder
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ function invalidate_bunny_cdn_cache {
155
155
--fail-with-body
156
156
}
157
157
158
+ repositories_were_updated=" false"
158
159
for repository in " ${REPOSITORIES[@]} " ; do
159
160
deb_remote_repo_dir=" deb/$repository "
160
161
rpm_remote_repo_dir=" rpm/$repository "
@@ -194,9 +195,12 @@ for repository in "${REPOSITORIES[@]}"; do
194
195
echo " [#] Syncing rpm repository to $rpm_remote_repo_dir "
195
196
rsync_repo " $rpm_repo_dir " " $rpm_remote_repo_dir "
196
197
198
+ repositories_were_updated=" true"
199
+ done
200
+
201
+ if [[ " $repositories_were_updated " == " true" ]]; then
197
202
if [[ " $environment " == " production" || " $environment " == " staging" ]]; then
198
203
echo " [#] Invalidating Bunny CDN cache for pull zone $bunnycdn_pull_zone_id "
199
204
invalidate_bunny_cdn_cache " $bunnycdn_pull_zone_id "
200
205
fi
201
-
202
- done
206
+ fi
You can’t perform that action at this time.
0 commit comments