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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 905a0d7e7b0d33022bcf135bb1ee0cf6bd2b46676285ad70053dfd45be45fad8 |
|
MD5 | b85f00749a42706cc77c34817d2e9426 |
|
BLAKE2b-256 | def631dbdd2f6542c6dabd0eac33d2d29e3cd693a681dba1597aa8372f9abd81 |
Close
Hashes for github_actions_utils-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46cfe6c8c0c77ee42b3b68d837f3a3a952317f0a8f3a314289a5bd6f4efc5eda |
|
MD5 | c256daa345b8f957923539d91bd50403 |
|
BLAKE2b-256 | 7221d5d39f3289fb9f4ccd96c18fd8dcddb79831860e57f4627f077c9f29bef9 |