File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
# Script to make a new AWS Lambda Layer release on Github
3
3
# Requires the Github CLI to be installed and configured: https://github.com/cli/cli
4
4
5
+ import os
5
6
import sys
6
7
import json
7
8
import distutils .spawn
8
9
from subprocess import check_output
9
10
10
11
if 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
+
12
22
13
23
# Check requirements first
14
24
for cmd in ["gh" ]:
You can’t perform that action at this time.
0 commit comments