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.vars.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-1.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a94dd7b0d11f5c9b7c5adde92c7a040bcd2563e143c12892b290e3d3d9387e37 |
|
MD5 | cba1f2584db6f7db2021989afd087c38 |
|
BLAKE2b-256 | b5403b3c5b63d0b13a6e030490c6c4e9088a651e00b1540abe2e90d0d148962a |
Close
Hashes for github_custom_actions-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8efa02d1cd25c6ddc6290b07a3032858bd45d8b58de8bdf35ca2035992418f5 |
|
MD5 | 2a52a04dd4ca001eb57e88023dc048e7 |
|
BLAKE2b-256 | 64daa58e67e22e86449b4cde3e334fa1628c0a3e52887ee8ccccd077be67c790 |