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 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.6.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: github_actions_utils-0.6.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for github_actions_utils-0.6.0.tar.gz
Algorithm Hash digest
SHA256 905a0d7e7b0d33022bcf135bb1ee0cf6bd2b46676285ad70053dfd45be45fad8
MD5 b85f00749a42706cc77c34817d2e9426
BLAKE2b-256 def631dbdd2f6542c6dabd0eac33d2d29e3cd693a681dba1597aa8372f9abd81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_actions_utils-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46cfe6c8c0c77ee42b3b68d837f3a3a952317f0a8f3a314289a5bd6f4efc5eda
MD5 c256daa345b8f957923539d91bd50403
BLAKE2b-256 7221d5d39f3289fb9f4ccd96c18fd8dcddb79831860e57f4627f077c9f29bef9

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