Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxpy committed Nov 18, 2024
1 parent 7c78748 commit 34d9469
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion testing_action/glorious/pattern.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def rainbowify(string):
def rainbowfier(string):
colors = [
"\033[91m",
"\033[93m",
Expand Down
13 changes: 8 additions & 5 deletions testing_action/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from glorious.pattern import rainbowify
from glorious.pattern import rainbowfier

from pyaction import PyAction
from pyaction.workflow import annotations
from pyaction.workflow.stream import WorkflowContext

workflow = PyAction()

Expand All @@ -13,8 +14,10 @@ def testing_action(test_name: str, test_age: int) -> None:
annotations.error("This is an error annotation!")

workflow.write(
{
"message": rainbowify(f"{test_name}, you are {test_age}!"),
"multiline_message": f"{test_name=}\n{test_age=}",
}
WorkflowContext(
{
"message": rainbowfier(f"{test_name}, you are {test_age}!"),
"multiline_message": f"{test_name=}\n{test_age=}",
}
)
)

0 comments on commit 34d9469

Please sign in to comment.