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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1d9daf2976ed9e718bc26265ed187022e00462261998612cecd0f8d1f7a07d |
|
MD5 | 9b93da1eb398e94affc47e5bf141e41a |
|
BLAKE2b-256 | a9badfde88af782e58a97ce6f5f2006d5204d502ddd5ea403f1838b931e36676 |
Close
Hashes for github_custom_actions-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb899e12c2a407e82edfb711e9343763cde11ed5b294cd3e95415f7617786838 |
|
MD5 | 786c4ec3af8952e0ada3c53571c2d297 |
|
BLAKE2b-256 | fb683e4207a9c77dc8f17a582e4e1b8cc450d79fd66b5a1a337a7fedb1f4be6f |