actions-python-core
Core functions for setting results, logging, registering secrets and exporting variables across actions
Usage
Import the package
from actions import core
Inputs/Outputs
Action inputs can be read with get_input which returns a str or get_boolean_input which parses a boolean based on the yaml 1.2 specification. If required set to be false, the input should have a default value in action.yml.
Outputs can be set with set_output which makes them available to be mapped into inputs of other actions to ensure they are decoupled.
my_input = core.get_input("input_name", required=True)
my_boolean_input = core.get_boolean_input("boolean_input_name", required=True)
my_multiline_input = core.get_multiline_input("multiline_input_name", required=True)
core.set_output("output_key", "output_value")
TBD
Release files for actions-python-core 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| actions_python_core-0.1.3.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| actions_python_core-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.4 kB
Release files / actions_python_core-0.1.3.tar.gz
| Download URL | actions_python_core-0.1.3.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f6d818393d79e0a80ab5e71e31a5ce7ab651c196fa6f32fbe5fe9305163ac86
|
|
BLAKE2b-256 checksum How to use checksums |
2202843cfcf2d371663be207d240e7534a3e75f13c7940803e0523da0c05040f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / actions_python_core-0.1.3-py3-none-any.whl
| Download URL | actions_python_core-0.1.3-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a12a8788ddbcd873eb6fba4ec6d5d96bab89ff04bfbdcb8c4e77032e4a8b134
|
|
BLAKE2b-256 checksum How to use checksums |
25c7b50f151ba88f864c5075b171db8c40597762746180a031b935a9080e3b9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|