From 06f7e6bb119db1a9d8b9bd8f710963e3b42dbfee Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Fri, 9 Feb 2024 13:29:05 +0100 Subject: [PATCH] =?UTF-8?q?DAT-16880=E2=80=A8=E2=80=A8=E2=80=A8=E2=80=A8?= =?UTF-8?q?=20=20DevOps=20::=20Extensions=20failing=20during=20attach=20ar?= =?UTF-8?q?tifacts=20workflow=20(#162)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(get_draft_release.sh): add logging statements to print GITHUB_REPOSITORY and RELEASE variables for debugging purposes fix(upload_asset.sh): add logging statements to print UPLOAD_URL, file size, and content type for debugging purposes * chore(extension-attach-artifact-release.yml): update script file URLs to point to the correct branch (DAT-16880) in the liquibase/build-logic repository * chore(get_draft_release.sh): add debug log to print GENERATED_UPLOAD_URL chore(upload_asset.sh): add debug log to print _DIR and UPLOAD_URL * refactor(get_draft_release.sh): remove unnecessary echo statement and add newline at the end of file for consistency * fix(get_draft_release.sh): remove unnecessary echo statements for debugging purposes * refactor(upload_asset.sh): remove unnecessary echo statement The echo statement printing the value of the _DIR variable is removed as it is not needed for the functionality of the script. * chore(extension-attach-artifact-release.yml): update script file URLs to use the latest version of build-logic repository The script files used in the workflow were outdated and needed to be updated to the latest version of the build-logic repository. This ensures that the workflow uses the most up-to-date scripts for attaching artifacts and uploading zip files to draft releases. * chore(extension-attach-artifact-release.yml): update script file URLs to point to the correct branch (DAT-16880) in the liquibase/build-logic repository * refactor(upload_asset.sh): remove unnecessary echo statements for file upload details The echo statements for file upload details were removed as they were not providing any useful information and were cluttering the output. * refactor(upload_asset.sh): remove unnecessary empty line to improve code readability * chore(extension-attach-artifact-release.yml): update script file URLs to use version v0.6.1 of build-logic repository for better stability and compatibility --- .github/upload_asset.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/upload_asset.sh b/.github/upload_asset.sh index 75d950dd..9947f73b 100755 --- a/.github/upload_asset.sh +++ b/.github/upload_asset.sh @@ -26,6 +26,8 @@ fi _DIR=$(dirname "$0") UPLOAD_URL=$($_DIR/get_draft_release.sh UPLOAD_URL) +echo "UPLOAD_URL: $UPLOAD_URL" + upload_asset() { local file=$1 local size=$2