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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11851055409d7c6f716599fb7bc44448c83ff6989543b0980e28f601cd144dae |
|
MD5 | ec0027309c0719d3d1f5c1eb0bf5c5e7 |
|
BLAKE2b-256 | 0f76ca7246e83fdece2cffeac27400667ec50c2919d6cc7b0ed27e1d177e0aa5 |
Close
Hashes for github_actions_utils-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fa7d3bf747cb1450c2bf498f35979d53fb61972b6a965b4056ce62232bd3ae5 |
|
MD5 | 3283faf84b76fa8b0a5b085519f9de9d |
|
BLAKE2b-256 | 9f843cddd2cfb83911155d2db7df2672f4e053bf5b3bbfcc8254d34fc615f65c |