File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ phases:
16
16
python : latest
17
17
pre_build :
18
18
commands :
19
- - git checkout $BRANCH
20
- - CURRENT_COMMIT =$(git rev-parse --short HEAD )
19
+ - git checkout $COMMIT_ID
20
+ - FOUND_VERSION =$(sed -n 's/__version__ = "\(.*\)"/\1/p' src/aws_encryption_sdk/identifiers.py )
21
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"
22
+ if expr ${FOUND_VERSION} != ${VERSION }; then
23
+ echo "identifiers.py does not contain expected version string ${VERSION} , stopping"
24
24
exit 1;
25
25
fi
26
26
build :
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ phases:
16
16
python : latest
17
17
pre_build :
18
18
commands :
19
- - git checkout $BRANCH
20
- - CURRENT_COMMIT =$(git rev-parse --short HEAD )
19
+ - git checkout $COMMIT_ID
20
+ - FOUND_VERSION =$(sed -n 's/__version__ = "\(.*\)"/\1/p' src/aws_encryption_sdk/identifiers.py )
21
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"
22
+ if expr ${FOUND_VERSION} != ${VERSION }; then
23
+ echo "identifiers.py does not contain expected version string ${VERSION} , stopping"
24
24
exit 1;
25
25
fi
26
26
build :
You can’t perform that action at this time.
0 commit comments