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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b99befa123a2fe1161c0e46820fc9a6ce3503693b89ccdacffde6be32893d0d6 |
|
MD5 | b476045cb818a17b24d620109369db25 |
|
BLAKE2b-256 | 6644767dc645b42879ec5741a7782d611749e07a072c924debc55c67982d18de |
Close
Hashes for github_custom_actions-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 293973c58406c52c6bac575de9793d3424e7833583519b9777d1970d24200acb |
|
MD5 | 793914bf66764abf3e6a3c2de485ea55 |
|
BLAKE2b-256 | 6cf5cbfaa65cd498abbba611c3f284c90012c13d324d7d9d003a4b8c33438c8d |