We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cc26d7 commit a0c74cfCopy full SHA for a0c74cf
codebuild/release/test-release.yml
@@ -16,11 +16,11 @@ phases:
16
python: latest
17
pre_build:
18
commands:
19
- - git checkout $BRANCH
20
- - CURRENT_COMMIT=$(git rev-parse --short HEAD)
+ - git checkout $COMMIT_ID
+ - FOUND_VERSION=$(sed -n 's/__version__ = "\(.*\)"/\1/p' src/aws_encryption_sdk/identifiers.py)
21
- |
22
- if expr "${CURRENT_COMMIT}" != ${COMMIT_ID}; then
23
- echo "HEAD of repository commit (${CURRENT_COMMIT}) did not match expected commit (${COMMIT_ID}), stopping"
+ if expr ${FOUND_VERSION} != ${VERSION}; then
+ echo "identifiers.py does not contain expected version string ${VERSION}, stopping"
24
exit 1;
25
fi
26
build:
0 commit comments