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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8797e1402209c73411d5722e83677396a7ce917600aa1f2d552a749fa0783fd7 |
|
MD5 | 195e43d398c04a055086b3c34c744e56 |
|
BLAKE2b-256 | 0c87167fb6e601f39497c44f2e12fc94be0577e086e0244d6c2e95788cdb6fa9 |
Close
Hashes for github_actions_utils-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841ad4952f77c31966dbaeb8a5d92d6c1224b95dcfea84e12efceb6a15bc6899 |
|
MD5 | fb980cbb1bed9dd23fe44dd71aca0372 |
|
BLAKE2b-256 | 91e671c8ebd4c84f0609f81f383f118225b5edb17916e960c620e726fd02033b |