Skip to content

Commit 0f592b6

Browse files
WesWes
Wes
authored and
Wes
committed
initial commit
Commiter: Wes <wes.coffay@acloud.guru>
0 parents  commit 0f592b6

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Diff for: README.MD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# GitHub Actions Deep Dive
2+
3+
A simple Lambda function that can be deployed via a GitHub Actions Workflow.

Diff for: function/lambda_function.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from github import Github
2+
3+
def lambda_handler(event, context):
4+
"""Lambda function wrapper
5+
Args:
6+
event: trigger event dict
7+
context: lambda methods and properties
8+
Returns:
9+
string: greeting response
10+
"""
11+
print('Starting functions\n---------------------------------------------'
12+
13+
if event["input"] == "Hello":
14+
15+
return "World"
16+
17+
else:
18+
19+
raise

Diff for: function/requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Github==1.55
2+
boto3==1.17.96

0 commit comments

Comments
 (0)