From 542f4cc56265aad5f6fb9f13b14a9da8fcbec9ee Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Mon, 17 Apr 2023 17:13:42 +0200 Subject: [PATCH] fix(script): Upload a media to Minio even if a commit is pushed to `main` --- scripts/upload-media.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upload-media.pl b/scripts/upload-media.pl index 23df3cf..077e572 100755 --- a/scripts/upload-media.pl +++ b/scripts/upload-media.pl @@ -10,6 +10,7 @@ chop($git_commit_sha); if ( $git_branch eq $main_branch) { print "Syncing to the production bucket\n"; + print `rclone copy -P static "$common_bucket/$git_commit_sha"`; print `rclone sync -P "$common_bucket/$git_commit_sha" "$main_bucket/"`; } else { print "Creating a new hashed dir in the common bucket\n";