Skip to content

Commit

Permalink
[docs] Add the new docs CI checks (#866)
Browse files Browse the repository at this point in the history
* add the new ci checks

* fix: lint

---------

Co-authored-by: Ivan Fernandez Calvo <[email protected]>
  • Loading branch information
colleenmcginnis and kuisathaverat authored Feb 26, 2025
1 parent 698b8b2 commit 3b7fd9a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: docs-build

on:
push:
branches:
- main
pull_request_target: ~
merge_group: ~

jobs:
docs-preview:
uses: elastic/docs-builder/.github/workflows/preview-build.yml@main
with:
path-pattern: docs/**
permissions:
deployments: write
id-token: write
contents: read
pull-requests: read
14 changes: 14 additions & 0 deletions .github/workflows/docs-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: docs-cleanup

on:
pull_request_target:
types:
- closed

jobs:
docs-preview:
uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@main
permissions:
contents: none
id-token: write
deployments: write
4 changes: 2 additions & 2 deletions handlers/aws/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_ec2_client() -> BotoBaseClient:


def capture_serverless(
func: Callable[[dict[str, Any], context_.Context], str]
func: Callable[[dict[str, Any], context_.Context], str],
) -> Callable[[dict[str, Any], context_.Context], str]:
"""
Decorator with logic regarding when to inject apm_capture_serverless
Expand All @@ -89,7 +89,7 @@ def wrapper(lambda_event: dict[str, Any], lambda_context: context_.Context) -> s


def wrap_try_except(
func: Callable[[dict[str, Any], context_.Context], str]
func: Callable[[dict[str, Any], context_.Context], str],
) -> Callable[[dict[str, Any], context_.Context], str]:
"""
Decorator to catch every exception and capture them by apm client if set
Expand Down

0 comments on commit 3b7fd9a

Please sign in to comment.