From 6df4b966aab7ed1cee8830736b3d55cd9fc5657d Mon Sep 17 00:00:00 2001 From: awsluja Date: Mon, 17 Jul 2023 15:59:35 -0400 Subject: [PATCH] ci: fix commit hash missing on codebuild --- packages/amplify-cli-npm/binary.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/amplify-cli-npm/binary.ts b/packages/amplify-cli-npm/binary.ts index 12c850d7938..0fe93f1adde 100644 --- a/packages/amplify-cli-npm/binary.ts +++ b/packages/amplify-cli-npm/binary.ts @@ -75,6 +75,7 @@ const getCompressedBinaryUrl = (): string => { if (process.env.IS_AMPLIFY_CI && process.env.CODEBUILD_SRC_DIR) { // use cloudfront distribution for e2e url = `https://${process.env.PKG_CLI_CLOUDFRONT_URL}/${version}/${compressedBinaryName}`; + url = url.replace('.tgz', `-${getCommitHash()}.tgz`); } else if (process.env.IS_AMPLIFY_CI) { url = url.replace('.tgz', `-${getCommitHash()}.tgz`); }