Skip to content

Commit

Permalink
Correção de release automático
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianosan committed Nov 11, 2024
1 parent 407c5c9 commit dd97522
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ jobs:
if [ -z "$latest_tag" ]; then
latest_tag="lambda_functions_v0.1"
fi
version=$(echo $latest_tag | sed 's/lambda_functions_v//')
IFS='.' read -r major minor patch <<< "$version"
minor=$((minor + 1))
version=$(echo "$latest_tag" | sed 's/lambda_functions_v//')
IFS='.' read -r major minor <<< "$version"
minor=$((minor + 1))
new_version="lambda_functions_v${major}.${minor}"
echo "New version is $new_version"
echo "new_version=$new_version" >> $GITHUB_ENV
echo "new_version=$new_version" >> $GITHUB_ENV
# Cria um arquivo ZIP com os artefatos da pasta lambda_functions (se houver mudanças)
- name: Zip lambda_functions folder
Expand Down
1 change: 0 additions & 1 deletion lambda_functions/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,5 +338,4 @@ 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()

0 comments on commit dd97522

Please sign in to comment.