Skip to main content

Package of useful functions for GitHub Actions.

Project description

Github Actions Utils


GitHub

Create Pull Request Code Quality Release Upload Python Package

GitHub last commit Latest GitHub Release Date GitHub commits since latest release (by SemVer including pre-releases)

GitHub issues GitHub pull requests GitHub Discussions


Sonarcloud

Quality Gate Status

Vulnerabilities Duplicated Lines (%) Reliability Rating Technical Debt Coverage Lines of Code Code Smells Maintainability Rating Security Rating Bugs

Sonarcloud

Coverage Status

GitHub

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github_actions_utils-0.6.0.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

github_actions_utils-0.6.0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page