Skip to content

Commit

Permalink
ci: fix commit hash missing on codebuild (#12959)
Browse files Browse the repository at this point in the history
  • Loading branch information
awsluja authored Jul 18, 2023
1 parent 47990a9 commit e99bc87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/amplify-cli-npm/binary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
Expand Down

0 comments on commit e99bc87

Please sign in to comment.