🛠 The GitHub ToolKit for developing GitHub Actions in Python.
Project description
Actions Toolkit
The GitHub Actions ToolKit provides an SDK to make creating actions easier in Python.
Installation
Action Toolkit is available on PyPI:
$ python -m pip install actions-toolkit
Action Toolkit officially supports Python 3.6+.
Usage
>>> import os
>>> from actions_toolkit import core
>>> os.environ['INPUT_NAME'] = 'Actions Toolkit'
>>> core.get_input('name', required=True)
'Actions Toolkit'
>>> core.error('Something went wrong.')
::error::Something went wrong.
>>> core.info('Run successfully.')
Run successfully.
>>> core.set_failed('SSL certificates installation failed.')
::error::SSL certificates installation failed.
For more examples and API documentation, please see the core & github.
Contributing
Contributions are always welcomed!
Here are the workflow for contributors:
- Fork to your own
- Clone fork to local repository
- Create a new branch and work on it
- Keep your branch in sync
- Commit your changes (make sure your commit message concise)
- Push your commits to your forked repository
- Create a pull request
Please refer to CONTRIBUTING for detailed guidelines.
License
The scripts and documentation in this project are released under the MIT License.
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
actions-toolkit-0.1.13.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for actions_toolkit-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f504ff786d770e2b31279651bb3c6b04d68a4f3bd240a8266d1159712f0d67e |
|
MD5 | 96782c2b7f9550f2731c6364eeea803a |
|
BLAKE2b-256 | e034c853825b186b3c3d0bbae7125d86c27eccfecce9d8b42a99596d3bcdd0f2 |