Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

actions_python_core-0.1.3-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page