Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release 0.2.37 #694

Merged
merged 3 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions bump-release.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import os
import sys
from cid._version import __version__ as old_ver

os.system('git checkout main')
Dismissed Show dismissed Hide dismissed
Dismissed Show dismissed Hide dismissed

Check failure

Code scanning / CodeGuru Reviewer Scanner

OS command injection High

os.system('git pull')
Dismissed Show dismissed Hide dismissed
Dismissed Show dismissed Hide dismissed

from cid._version import __version__ as old_ver

bump='patch'
if len(sys.argv)>1 :
if len(sys.argv)>1:
bump = sys.argv[1]

maj, minor, patch = map(int, old_ver.split('.'))
Expand All @@ -16,6 +19,8 @@
else:
raise NotImplementedError('only patch and minor are implemented')

os.system(f"git checkout -b 'release/{new_ver}'")
Dismissed Show dismissed Hide dismissed


tx = open('cid/_version.py').read()
with open('cid/_version.py', "w") as f:
Expand All @@ -27,4 +32,5 @@


os.system('git diff HEAD --unified=0')
print('to undo:\n git checkout HEAD -- cfn-templates/cid-cfn.yml cid/_version.py')
print('to undo:\n git checkout HEAD -- cfn-templates/cid-cfn.yml cid/_version.py')
print(f"to continue:\n git commit -am 'release {new_ver}'; git push origin 'release/{new_ver}'")
4 changes: 2 additions & 2 deletions cfn-templates/cid-cfn.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: Deployment of Cloud Intelligence Dashboards v0.2.36
Description: Deployment of Cloud Intelligence Dashboards v0.2.37
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
Expand Down Expand Up @@ -1505,7 +1505,7 @@ Resources:
Description: An AWS managed layer with a cid-cmd package installed
Content:
S3Bucket: !Sub '${LambdaLayerBucketPrefix}-${AWS::Region}'
S3Key: 'cid-resource-lambda-layer/cid-0.2.36.zip' #replace version here if needed
S3Key: 'cid-resource-lambda-layer/cid-0.2.37.zip' #replace version here if needed
CompatibleRuntimes:
- python3.10

Expand Down
2 changes: 1 addition & 1 deletion cid/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

__version__ = '0.2.36'
__version__ = '0.2.37'