actions / actions/toolkit

is there any function like Importing_variables?

Open
#1,861 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Thank you 🙇‍♀ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.

If your issue is relevant to this repository, please include the information below:

Describe the enhancement
A clear and concise description of what the features or enhancement you need.
is there any function to get env variable for this action?
so that, when I am using env variables, I can avoid exporting-variables function overwrite or conflicts with user's customer value by an env validation process?
ref
https://github.com/actions/toolkit/tree/main/packages/core#exporting-variables

Code Snippet
If applicable, add a code snippet to show the api enhancement.

  const default_values = "DEFAULT";
  const customer_values = core.Importing_variables("value");
  //logging...
  if (customer_values != "") {
    //logging...
    core.exportVariable("value", default_values);
  }
  //logging...
  //processing

Additional information
Add any other context about the feature here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with packages/core's exporting-variables documentation and the referenced core.exportVariable API. Clarify the intended behavior for reading an environment variable and detecting conflicts with a user's value, then confirm the API shape and expected validation behavior before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.