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) - |