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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d02f46c9f3b266f31ab209bae05f7999a679bc26eaa52ec253e5afbf04e1f30c |
|
MD5 | 91112e9aca71145b13c5f0b72fec8d4c |
|
BLAKE2b-256 | 6a53c53d3443324eb6af79391ef8beed9447a4c70ba22febb1000f98b33b90d5 |
Close
Hashes for github_custom_actions-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6795290baeb0d79ad6b28ce46800dc9ab1729bab073ec23e4bbdd2f9c5817f |
|
MD5 | 2fb2e6003c65149bf5b8e68d4105c18c |
|
BLAKE2b-256 | f8cbb71f3a19c0c1000d28dd128b2084112a03ca0d117416ee5fe063c0098ba5 |