Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there any function like Importing_variables? #1861

Open
SamYuan1990 opened this issue Oct 29, 2024 · 0 comments
Open

is there any function like Importing_variables? #1861

SamYuan1990 opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SamYuan1990
Copy link

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 SamYuan1990 added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant