Skip to content

Commit

Permalink
chore: checkout corresponding branch instead of commit (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
josecorella authored Jun 21, 2022
1 parent e5e647c commit 77c2d88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions codebuild/release/prod-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: 0.2

env:
variables:
BRANCH: "master"
secrets-manager:
TWINE_USERNAME: PyPiAdmin:username
TWINE_PASSWORD: PyPiAdmin:password
Expand All @@ -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)
- |
Expand Down
3 changes: 1 addition & 2 deletions codebuild/release/test-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: 0.2

env:
variables:
BRANCH: "master"
secrets-manager:
TWINE_USERNAME: TestPyPiCryptoTools:username
TWINE_PASSWORD: TestPyPiCryptoTools:password
Expand All @@ -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)
- |
Expand Down

0 comments on commit 77c2d88

Please sign in to comment.