Skip to content

Commit c0f534b

Browse files
committed
Use CloudWatch Events to update GitHub status
1 parent 456e0ee commit c0f534b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sam.yml

+12
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ Resources:
132132
CODEBUILD_PROJECT_REGION: !Ref CodeBuildRegion
133133
GITHUB_TOKEN: !Ref GitHubPersonalAccessToken
134134
GITHUB_REPOSITORY_URL: !Ref GitHubRepositoryUrl
135+
Events:
136+
CodeBuildStatusChange:
137+
Type: CloudWatchEvent
138+
Properties:
139+
Pattern:
140+
source:
141+
- "aws.codebuild"
142+
detail-type:
143+
- !Sub "CodeBuild Build State Change"
144+
detail:
145+
project-name:
146+
- !Ref CodeBuildProjectName
135147
##########################
136148
# Lambda (WebhookHandler)
137149
##########################

0 commit comments

Comments
 (0)