Skip to content

Commit ae2aced

Browse files
authored
Enable Application Obs GH Action (#160)
*Description of changes:* Enable Application Obs GH Action By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent c621c90 commit ae2aced

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/awsapm.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Application observability for AWS
2+
3+
on:
4+
issue_comment:
5+
types: [created, edited]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned, edited]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
jobs:
14+
awsapm-investigation:
15+
if: |
16+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@awsapm')) ||
17+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@awsapm')) ||
18+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@awsapm')) ||
19+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@awsapm') || contains(github.event.issue.title, '@awsapm')))
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
pull-requests: write
24+
issues: write
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 1
30+
31+
- name: Run Application observability for AWS Investigation
32+
id: awsapm
33+
uses: mxiamxia/aws-apm-action@main
34+
with:
35+
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
36+
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
37+
aws_region: ${{ vars.AWS_REGION || 'us-east-1' }}
38+
bot_name: "@awsapm"

0 commit comments

Comments
 (0)