Python package for creating custom GitHub Actions.
Project description
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for github_custom_actions-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bff82aba3b5945e9d041f8d78043ea80562876d4c21c3622ce44ef5aeb9e40cc |
|
MD5 | d67758d39f1db65bdabe9e7709b30203 |
|
BLAKE2b-256 | 59c79637e272efa5c5caff58d77b6fad4e90e5fe8f13a2e6a33c1b68c8f32306 |
Close
Hashes for github_custom_actions-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c373e32550988f5f1bd45cc68f63c30670b8cc80d2ea6ee52ff692f834629c |
|
MD5 | d9ed1466c12dfabde8c34fd79cb48ff0 |
|
BLAKE2b-256 | 2c3d603a8cfbc57d5d418249e2e320c81ef35df27eb4bd066e668ec7749e0612 |