Skip to main content

Python package for creating custom GitHub Actions.

Project description

Build Status Coverage

github-custom-actions

Python package for creating custom GitHub Actions.

Example of usage

from github_custom_actions import ActionBase

class MyAction(ActionBase):
    def main(self):
        self.outputs["runner-os"] = self.env.runner_os
        self.summary += (
            self.render(
                "### {{ inputs['my-input'] }}.\n"
                "Have a nice day!"
            )
        )

if __name__ == "__main__":
    MyAction().run()

Documentation

Developers

Do not forget to run . ./activate.sh.

Scripts

Install invoke and pre-commit preferably with pipx:

pipx install invoke pre-commit

For a list of available scripts run:

invoke --list

For more information about a script run:

invoke <script> --help

Coverage report

Created with cookiecutter using template

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_custom_actions-2.3.1.tar.gz (92.5 kB view details)

Uploaded Source

Built Distribution

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

github_custom_actions-2.3.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file github_custom_actions-2.3.1.tar.gz.

File metadata

  • Download URL: github_custom_actions-2.3.1.tar.gz
  • Upload date:
  • Size: 92.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for github_custom_actions-2.3.1.tar.gz
Algorithm Hash digest
SHA256 8e8e94b45a5ee9bbfbf92c3b948cc73d3f8a465125ac7ebb880c782aafd7b161
MD5 375c95db33f30353ee087d2e8e16eba5
BLAKE2b-256 878e78189ed354096f73fef60ba96f95601c16f9a65992fa5d08d80dc022fa0d

See more details on using hashes here.

File details

Details for the file github_custom_actions-2.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for github_custom_actions-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a7ba969d3f396d3698aafb36ba89f24e544f7fb38b7c65b90a04f7e1f978874
MD5 1bd7eedb8f1283b584ad3f8dd989f170
BLAKE2b-256 06c48d929a5d052f84577aa55cac609f36e6298696ff4ddecc9d2711439718fb

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