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, ActionInputs
class MyInputs(ActionInputs):
my_input: str
"""My input description"""
my_path: Path
"""My path description"""
class MyAction(ActionBase):
def __init__(self):
super().__init__(inputs=MyInputs())
if self.inputs.my_path is None:
raise ValueError("my_path is required")
def main(self):
self.inputs.my_path.mkdir(exist_ok=True)
self.outputs["RUNNER_OS"] = self.vars.runner_os
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
github_custom_actions-1.0.1.tar.gz
(267.5 kB
view hashes)
Built Distribution
Close
Hashes for github_custom_actions-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1485e250389f7c4ff9b850fe71ebd34fe03597a7b96f9bf950d1347938daee52 |
|
MD5 | ecfd9abe17d01ae0ffc3c53ede00d19a |
|
BLAKE2b-256 | 6b44851977c5eb418a475348e664ef2370c36079b6f63922cfe51224d8c73c33 |
Close
Hashes for github_custom_actions-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fab25c3867241fe0a96fcc7d34e951826e2d81ba550d575e7de7b2a6475807d |
|
MD5 | bc5f40c6458321b214aa2bbe8c441dfd |
|
BLAKE2b-256 | 04c9a13b82c4348ab2d68fe86cc64326db774dfbc91cc45cc85a15022b2bca4f |