diff --git a/functions/source/GitPullS3/lambda_function.py b/functions/source/GitPullS3/lambda_function.py index 4686be2..7b6ab81 100644 --- a/functions/source/GitPullS3/lambda_function.py +++ b/functions/source/GitPullS3/lambda_function.py @@ -190,6 +190,8 @@ def lambda_handler(event, context): try: # Bibucket server branch_name = event['body-json']['push']['changes'][0]['new']['name'] + if(event['body-json']['push']['changes'][0]['new']['type'] == 'tag'): + branch_name = 'tags/'+event['body-json']['push']['changes'][0]['new']['name'] except: branch_name = 'master' try: