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.3.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file actions_python_core-0.1.3.tar.gz
.
File metadata
- Download URL: actions_python_core-0.1.3.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f6d818393d79e0a80ab5e71e31a5ce7ab651c196fa6f32fbe5fe9305163ac86 |
|
MD5 | 7b5653fd85444fd467fa6d3b65482c55 |
|
BLAKE2b-256 | 2202843cfcf2d371663be207d240e7534a3e75f13c7940803e0523da0c05040f |
File details
Details for the file actions_python_core-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: actions_python_core-0.1.3-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a12a8788ddbcd873eb6fba4ec6d5d96bab89ff04bfbdcb8c4e77032e4a8b134 |
|
MD5 | 6b84d4a0df7fb0ad13adfcc886c9e803 |
|
BLAKE2b-256 | 25c7b50f151ba88f864c5075b171db8c40597762746180a031b935a9080e3b9b |