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.text += (
            self.render(
                "### {{ inputs['my-input'] }}.\n"
                "Have a nice day!"
            )
        )

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

Documentation

Github Custom Actions

Developers

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

Scripts

Install invoke preferably with pipx:

pipx install invoke

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.0.1.tar.gz (86.1 kB view hashes)

Uploaded Source

Built Distribution

github_custom_actions-2.0.1-py3-none-any.whl (13.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