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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a29d1ee1777a84551d7eb7d66387e3d62169da02afff5350c74478a0a2755a3e |
|
MD5 | 0cf05a35f53a8dad606c1b57743a4757 |
|
BLAKE2b-256 | 807ed83164ee5b802be43d0712714e57d36240b5dd9d04cf5ec16f12e7f9f98b |
Close
Hashes for github_actions_utils-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd22945a104401b5f22a62e30498e202d3adb0996e67c65993da3a06beff6b38 |
|
MD5 | e91678420478b97d65063849ef16d619 |
|
BLAKE2b-256 | a90ce606112a1294bb75174c1c7feb73212b1f841d6dc81fc1a9bc7bb9a70ae1 |