toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

is there any function like Importing_variables?

Open SamYuan1990 opened this issue 1 year ago • 0 comments

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.

SamYuan1990 avatar Oct 29 '24 02:10 SamYuan1990