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.0.tar.gz (92.2 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.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: github_custom_actions-2.3.0.tar.gz
  • Upload date:
  • Size: 92.2 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.0.tar.gz
Algorithm Hash digest
SHA256 8f0bc0c8d0b8fc5269669ee042bc5f46c135c4c4b5b5a8d1541a7b2557faeb96
MD5 8aaaee08b1d019e0690b9f0a8dfbc1c0
BLAKE2b-256 280eb499a2f7b4da069ed19852d1c8126178acb974949d41b98ab5a1e991aeec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_custom_actions-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4976a4934f88acf93b8f24965fdddc858a4013cc6a2bb3c7fb677ba08820ec0
MD5 e3d7231b4e2e6c9f40b36fb2b73d5bd0
BLAKE2b-256 0843c314cb5ca4d67c411f8e8f17eeb03ee6ad80cc848d0f01462d3772a73562

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