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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83fb8fd973e2bdd0ec83ad32991b303268d1ae3f0772a10eee0115631a27147b |
|
MD5 | 11867394598e24e4c15f5707699c666a |
|
BLAKE2b-256 | feb835c73d2023448dceb97f622ae3234ecba08607e647bf8c7e8dfe2071fb93 |
Close
Hashes for github_actions_utils-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d95a9ffe5efae837c0734730dbc6dd6d7537fffe8198bcb313135a1af8cc9b5 |
|
MD5 | a2529cf8d82c4f65859baba3783f36ed |
|
BLAKE2b-256 | 352fa5572ca5f4290f0acfb38163de215f4f54c41999a00713ab811e73d10820 |