From 77c2d884850adbd4b33081467a12fe2a8f54ac74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Corella?= <39066999+josecorella@users.noreply.github.com> Date: Tue, 21 Jun 2022 10:41:56 -0700 Subject: [PATCH] chore: checkout corresponding branch instead of commit (#476) --- codebuild/release/prod-release.yml | 3 +-- codebuild/release/test-release.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/codebuild/release/prod-release.yml b/codebuild/release/prod-release.yml index aa985e361..2a01495d2 100644 --- a/codebuild/release/prod-release.yml +++ b/codebuild/release/prod-release.yml @@ -1,8 +1,6 @@ version: 0.2 env: - variables: - BRANCH: "master" secrets-manager: TWINE_USERNAME: PyPiAdmin:username TWINE_PASSWORD: PyPiAdmin:password @@ -16,6 +14,7 @@ phases: python: latest pre_build: commands: + - git fetch origin $COMMIT_ID:$COMMIT_ID --depth=1 - git checkout $COMMIT_ID - FOUND_VERSION=$(sed -n 's/__version__ = "\(.*\)"/\1/p' src/aws_encryption_sdk/identifiers.py) - | diff --git a/codebuild/release/test-release.yml b/codebuild/release/test-release.yml index 6c0ce85c9..ad2109df8 100644 --- a/codebuild/release/test-release.yml +++ b/codebuild/release/test-release.yml @@ -1,8 +1,6 @@ version: 0.2 env: - variables: - BRANCH: "master" secrets-manager: TWINE_USERNAME: TestPyPiCryptoTools:username TWINE_PASSWORD: TestPyPiCryptoTools:password @@ -16,6 +14,7 @@ phases: python: latest pre_build: commands: + - git fetch origin $COMMIT_ID:$COMMIT_ID --depth=1 - git checkout $COMMIT_ID - FOUND_VERSION=$(sed -n 's/__version__ = "\(.*\)"/\1/p' src/aws_encryption_sdk/identifiers.py) - |