Skip to content

[Investigate] Environment File/Variable Support #181

Open
@ncalteen

Description

@ncalteen

The workflow commands documentation refers to a number of environment variables that point to files in the GitHub Actions runtime environment. Namely the following:

Variable Description Equivalent @actions/core Function
GITHUB_PATH Add values to the job's PATH addPath()
GITHUB_ENV Export environment variables exportVariable()
GITHUB_STATE Save state information saveState()
GITHUB_STEP_SUMMARY Edit the step summary summary()
GITHUB_OUTPUT Set output values setOutput()

There are also environment variables that map to various @actions/core functions:

Variable Description Equivalent @actions/core Function
INPUT_{NAME} Get an input value getInput()
STATE_{NAME} Get a state value getState()
RUNNER_DEBUG Check if in debug mode isDebug()

It would be helpful to investigate if there's a way to map access to these environment variables to the corresponding functionality.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions