File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 22# Script to make a new AWS Lambda Layer release on Github
33# Requires the Github CLI to be installed and configured: https://github.com/cli/cli
44
5+ import os
56import sys
67import json
78import distutils .spawn
89from subprocess import check_output
910
1011if len (sys .argv ) != 2 :
11- raise ValueError ('Please specify the layer version to release. e.g. "11"' )
12+ raise ValueError ('Please specify the layer version to release. e.g. "14"' )
13+
14+ if sys .argv [1 ] in ['-h' , '--help' ]:
15+ filename = os .path .basename (__file__ )
16+ print ("Usage: %s <version number>" % filename )
17+ print ("Exampe: %s 14" % filename )
18+ print ("" )
19+ print ("This will create a AWS Lambda release on Github such as:" )
20+ print ("https://github.com/instana/python-sensor/releases/tag/v14" )
21+
1222
1323# Check requirements first
1424for cmd in ["gh" ]:
You can’t perform that action at this time.
0 commit comments