From e9d6d4be24158a4a1e14164c86f12965bb3ec2ce Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Thu, 23 Jan 2025 12:51:59 -0700 Subject: [PATCH] fix error in uploadtool (#1405) The error meant releases were always deleted, preventing a second job from adding an asset to an existing release. This use case is important now as we are generating snaps for both amd64 and arm64. --- tools/uploadtool/upload_github.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/uploadtool/upload_github.sh b/tools/uploadtool/upload_github.sh index 851a82407..963bd66ea 100755 --- a/tools/uploadtool/upload_github.sh +++ b/tools/uploadtool/upload_github.sh @@ -79,7 +79,7 @@ echo "release_url: $release_url" target_commit_sha=$(echo "$release_infos" | grep '"target_commitish":' | head -n 1 | cut -d '"' -f 4 | cut -d '{' -f 1) echo "target_commit_sha: $target_commit_sha" -if [ "{$GITHUB_SHA}" != "$target_commit_sha" ] ; then +if [ "${GITHUB_SHA}" != "$target_commit_sha" ] ; then echo "GITHUB_SHA != target_commit_sha, hence deleting $RELEASE_NAME..."