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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3a05c199e6ce58d6aed65b3f3c778ba3b2fc5fb46d6613b8d92ea52c33ee710 |
|
MD5 | 4e929aae371e9540284c54add2e4dec0 |
|
BLAKE2b-256 | b553c4b948e227f5ecae827d13b6494c7eacf53c8fae31d82cff590594ff1570 |
Close
Hashes for github_actions_utils-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f871726722a4c27e5245a08e6bfe084526f1fba4380e9652d71f33a7d7d78b81 |
|
MD5 | c2a09b5487c81078dad716d9ae68898c |
|
BLAKE2b-256 | b228d5ca29b41ed37ce9660d1f8e7964216444c6e4adeeb5437fcc18b10599fd |