Package of useful functions for GitHub Actions.
Project description
Github Actions Utils
Log Utils
github group decorator
from github_actions_utils.log_utils import github_group
@github_group("foo")
def foo():
code
Will produce in github action log
▸ foo
You can use the function parameters as input like:
@github_group("Running $cmd")
def run(cmd):
code
When your code calls the run
function will print user the value from cmd
parameter:
run("nice command")
▸ Running nice command
Even if the value is an object and you want a value from the object attribute:
@github_group("Hello $(person.name)")
def hello(person):
code
p = Person(name="Heitor")
hello(p)
▸ Hello Heitor
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for github_actions_utils-0.4.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8dc58ae506aa5dfb9c82eee1925ea3244934120d2d071cf4a4ca7301f9d5a78 |
|
MD5 | 251de94b12bf915abe8248215f54cd2d |
|
BLAKE2b-256 | 649c630d178bac72936ebf4ae82e1a2c855caab8f41b414dceec78134330cb00 |
Close
Hashes for github_actions_utils-0.4.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fbf05314437895c1657b2ef5d83fb1f18826b82461c1496e3a9599b08c81ad6 |
|
MD5 | ca872df61f6419d6b1893e7e4c2eebb6 |
|
BLAKE2b-256 | d008fe9334ec04e446fc7eaca405aec2af7804c58d473825de4c3a2f46137b12 |