Skip to content

Commit 6a72e0a

Browse files
Validate the source code has the expected version
1 parent 4cc26d7 commit 6a72e0a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

codebuild/release/test-release.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ phases:
1616
python: latest
1717
pre_build:
1818
commands:
19-
- git checkout $BRANCH
20-
- CURRENT_COMMIT=$(git rev-parse --short HEAD)
19+
- git checkout $COMMIT_ID
2120
- |
22-
if expr "${CURRENT_COMMIT}" != ${COMMIT_ID}; then
23-
echo "HEAD of repository commit (${CURRENT_COMMIT}) did not match expected commit (${COMMIT_ID}), stopping"
21+
if [[ ! $(grep "__version__ = \"${VERSION}\"" src/aws_encryption_sdk/identifiers.py) ]]; then
22+
echo "identifiers.py does not contain expected version string ${version}, stopping"
2423
exit 1;
2524
fi
2625
build:

0 commit comments

Comments
 (0)