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.2.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ffac7b69ca10ff8530adb328a3c00770e0df262f9b179bb774ae98930124c9 |
|
MD5 | b0b81fcbe7de4dc881b02e983cb63ee7 |
|
BLAKE2b-256 | a03f1bf490076422c61e9d9fbc9e2a19fd493e98831d65d7aaa2d48d364e388c |
Close
Hashes for github_actions_utils-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4705bafc3c6c9dbbb0eec31d20740d786ea3c915f96a44620b04f20d737e2fd3 |
|
MD5 | b853d29f1bee292678f39665e8cea87f |
|
BLAKE2b-256 | 6b73ff61b366f3017ef37e14d9a66041b417ea380e5c20a07afeb10f1652cbf9 |