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 top language

GitHub issues GitHub pull requests GitHub Discussions

GitHub code size in bytes GitHub repo file count (file extension) GitHub contributors


PyPi

PyPI - Status PyPI - Python Version PyPI - Version


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.4.11.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_actions_utils-0.4.11-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file github_actions_utils-0.4.11.tar.gz.

File metadata

  • Download URL: github_actions_utils-0.4.11.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for github_actions_utils-0.4.11.tar.gz
Algorithm Hash digest
SHA256 1c7eb9a9eaa0b6fb73cc3a480be6b6c6ba35817078fab9f9b8082a674c6af561
MD5 d28d0ed3030fdbbe553ba017aea951a3
BLAKE2b-256 7a4831321ae56ad1d11bdeb2c07b5f0587a1a891fab1b4aa972bdba5ed14b6cf

See more details on using hashes here.

File details

Details for the file github_actions_utils-0.4.11-py3-none-any.whl.

File metadata

File hashes

Hashes for github_actions_utils-0.4.11-py3-none-any.whl
Algorithm Hash digest
SHA256 95076f53f024f05c3ca86062e2b56cb393f8f6a7bb13c6c17391aff758b57dec
MD5 a82eb71e170dac7b0c42e24af8210010
BLAKE2b-256 2ec1ed413721e492ddc41318e0e5f1529f500f6b3c50d434bee5ecee96e7cf75

See more details on using hashes here.

Supported by

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