🛠 The GitHub ToolKit for developing GitHub Actions in Python.
Project description
Actions Toolkit
The GitHub Actions ToolKit provides a set of packages to make creating actions easier in Python.
>>> import os
>>> from actions_toolkit import core
>>> os.environ['INPUT_NAME'] = 'Actions Toolkit'
>>> core.get_input('name')
'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.
Installing Actions Toolkit and Supported Versions
Action Toolkit is available on PyPI:
$ python -m pip install actions-toolkit
Action Toolkit officially supports Python 3.6+.
Packages
actions.core
: Provides functions for inputs, outputs, results, logging, secrets and variables. Read more here.actions.exec
: Provides functions to exec cli tools and process output.actions.glob
: Provides functions to search for files matching glob patterns.actions.io
: Provides disk i/o functions like cp, mv, rmRF, which etc.actions.tool-cache
: Provides functions for downloading and caching tools. e.g. setup-* actions.actions.github
: Provides an Octokit client hydrated with the context that the current action is being run in.actions.artifact
: Provides functions to interact with actions artifacts.actions.cache
: Provides functions to cache dependencies and build outputs to improve workflow execution time.
Contributing
We welcome contributions.
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.0.9.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for actions_toolkit-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 774a3cfbe04230fcb833652d82e9034f8e699f6843e9609660017fe759824ed6 |
|
MD5 | 6c416a46d33a866ae2c52b59ba186f8e |
|
BLAKE2b-256 | 2917484608ea14560e5c3b7d548317ba17fe50f50a63cbd1686bd7cff72c9598 |