Actions core lib
Project description
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
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_python_core-0.1.1.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for actions_python_core-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23b417bcb2002747e9dc95e43e969263ca098a3ff243953232484ac787c81aff |
|
MD5 | bd0caebadba9675d4c33d5801cfeac99 |
|
BLAKE2b-256 | 6fa855aa6842ee884083a5c42ef1d6264fe78e7320c2fd28f9bc2fdc58cc6106 |
Close
Hashes for actions_python_core-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf72932791f29281495fb8914ab37105d4b4ce12273cbf5915be5345005300a |
|
MD5 | dbf02b38bb7f4f3f8376f6f30a11c534 |
|
BLAKE2b-256 | 619670e75ee90758d45b299e2d664ef40a99ed567bcf00418cd9cf89ec99b212 |