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.2.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for actions_python_core-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb4923184c581bd6e2a673b41bbe2f5ef6c407035492abecf4723b66f9ed5b9 |
|
MD5 | 842fafe5f1c1140fc69ee54d6685dedc |
|
BLAKE2b-256 | b6e72c75ded0f64b3035909c7d1c9ec63102564cc96ba3f16e8a94639c67a6d9 |
Close
Hashes for actions_python_core-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d19cac758849c7b7125b31d7dad5907825ee712ec5d5d6f0243c3216e3b94ec |
|
MD5 | ce1681e4ff2b2c9aac45a471fe43ae06 |
|
BLAKE2b-256 | 623dca416a3668f1fbef043ef051683247acac56a5f6e3a4022d7edbf9e40b60 |