From 32b08eac390f9c19439c2ca7f06b7d3901c3e9b5 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Wed, 26 Apr 2023 07:17:19 +0200 Subject: [PATCH] Checkout to a branch, not to a commit --- .drone.yml | 2 +- scripts/upload-media.pl | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7a9a7e1..f7ab424 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,7 +42,7 @@ steps: GIT_LFS_SKIP_SMUDGE: 1 commands: - git clone $DRONE_REMOTE_URL --recurse-submodules . - - git checkout $DRONE_COMMIT + - git checkout $DRONE_BRANCH - name: Test a build image: git.badhouseplants.net/badhouseplants/hugo-builder diff --git a/scripts/upload-media.pl b/scripts/upload-media.pl index 07b066e..f52159f 100755 --- a/scripts/upload-media.pl +++ b/scripts/upload-media.pl @@ -20,7 +20,6 @@ print `git -C /tmp/$git_commit_sha lfs pull` or die; print "Creating a new hashed dir in the common bucket\n"; print `rclone copy /tmp/$git_commit_sha/static "$common_bucket/$git_commit_sha"` or die; -print $git_branch; if ($git_branch eq $main_branch) { print "Syncing to the production bucket\n";