Skip to content

Commit 263b5fd

Browse files
committed
feat: Updated to use toolkit 0.1.3
1 parent d4275a5 commit 263b5fd

File tree

3 files changed

+6
-23
lines changed

3 files changed

+6
-23
lines changed

action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,3 @@ outputs:
1111
runs:
1212
using: "docker"
1313
image: "Dockerfile"
14-
args:
15-
- ${{ inputs.who-to-greet }}

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
import datetime
3+
import json
34

45
from actions import core, github
56

@@ -12,7 +13,7 @@ def main():
1213
time = datetime.datetime.now().isoformat()
1314
core.set_output("time", time)
1415
# Get the JSON webhook payload for the event that triggered the workflow
15-
payload = github.context.payload.model_dump_json(indent=2)
16+
payload = json.dumps(github.context.payload, separators=(",", ":"))
1617
print(f"The event payload: {payload}")
1718
except Exception as e:
1819
core.set_failed(e)

requirements.txt

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
#
55
# pip-compile requirements.in
66
#
7-
actions-python-core==0.1.1
7+
actions-python-core==0.1.3
88
# via
99
# -r requirements.in
1010
# actions-python-github
11-
actions-python-github==0.1.1
11+
actions-python-github==0.1.3
1212
# via -r requirements.in
1313
aiofiles==23.2.1
1414
# via actions-python-core
15-
annotated-types==0.5.0
16-
# via pydantic
1715
anyio==4.0.0
1816
# via httpcore
1917
certifi==2023.7.22
@@ -22,34 +20,20 @@ certifi==2023.7.22
2220
# httpx
2321
exceptiongroup==1.1.3
2422
# via anyio
25-
githubkit==0.11.0a0
26-
# via actions-python-github
2723
h11==0.14.0
2824
# via httpcore
2925
httpcore==0.18.0
3026
# via httpx
3127
httpx==0.25.0
32-
# via
33-
# actions-python-core
34-
# githubkit
28+
# via actions-python-core
3529
idna==3.4
3630
# via
3731
# anyio
3832
# httpx
39-
pydantic==2.4.2
40-
# via
41-
# actions-python-github
42-
# githubkit
43-
pydantic-core==2.10.1
44-
# via pydantic
4533
sniffio==1.3.0
4634
# via
4735
# anyio
4836
# httpcore
4937
# httpx
5038
typing-extensions==4.8.0
51-
# via
52-
# actions-python-core
53-
# githubkit
54-
# pydantic
55-
# pydantic-core
39+
# via actions-python-core

0 commit comments

Comments
 (0)