From 2d02a2e33b56f1a2fa7249a1728983797d91de47 Mon Sep 17 00:00:00 2001 From: fabianosan Date: Mon, 11 Nov 2024 17:34:32 -0300 Subject: [PATCH] =?UTF-8?q?Teste=20release=20autom=C3=A1tico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 +- lambda_functions/lambda_function.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d95f4ce..41589b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: - name: Set release version id: get_version run: | - latest_tag=$(git tag -l "lambda_functions_v*" --sort=-v:refname | head -n 1) + latest_tag=$(git tag -l "lambda_functions_v*" | sort -V | tail -n 1) echo "latest_tag is $latest_tag" diff --git a/lambda_functions/lambda_function.py b/lambda_functions/lambda_function.py index 6b3f2f6..5aaab00 100644 --- a/lambda_functions/lambda_function.py +++ b/lambda_functions/lambda_function.py @@ -338,4 +338,5 @@ def handle(self, handler_input, exception): sb.add_request_handler(CancelOrStopIntentHandler()) sb.add_request_handler(SessionEndedRequestHandler()) sb.add_exception_handler(CatchAllExceptionHandler()) + lambda_handler = sb.lambda_handler() \ No newline at end of file